()
| 38 | * Gets the current theme from next-themes localStorage |
| 39 | */ |
| 40 | export function getThemeFromNextThemes(): 'system' | 'light' | 'dark' { |
| 41 | if (typeof window === 'undefined') return 'system' |
| 42 | return (localStorage.getItem('sim-theme') as 'system' | 'light' | 'dark') || 'system' |
| 43 | } |