(key: string, value: number)
| 46 | } |
| 47 | |
| 48 | function writeStored(key: string, value: number): void { |
| 49 | try { |
| 50 | safeSetString(key, String(value)); |
| 51 | } catch { |
| 52 | // localStorage unavailable (e.g. private mode) — width still works in-memory |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | export function useResizable(options: UseResizableOptions): UseResizable { |
| 57 | const { storageKey, defaultWidth, min, max, reverse = false } = options; |
no test coverage detected