(storageKey: string, index: number)
| 171 | } |
| 172 | |
| 173 | function readPersistedFoldState(storageKey: string, index: number): boolean | null { |
| 174 | const value = readFoldMap(storageKey)[String(index)] |
| 175 | return typeof value === 'boolean' ? value : null |
| 176 | } |
| 177 | |
| 178 | function readFoldMap(storageKey: string): Record<string, boolean> { |
| 179 | if (typeof window === 'undefined') return {} |
no test coverage detected