(key: string)
| 197 | |
| 198 | // Helper to safely access sessionStorage |
| 199 | const getSessionStorageItem = (key: string): string | null => { |
| 200 | try { |
| 201 | return sessionStorage.getItem(key); |
| 202 | } catch { |
| 203 | return null; |
| 204 | } |
| 205 | }; |
| 206 | |
| 207 | const setSessionStorageItem = (key: string, value: string): void => { |
| 208 | try { |