()
| 76 | export function ThemeSwitcher() { |
| 77 | let colorScheme = useCurrentColorScheme(); |
| 78 | let onPress = () => { |
| 79 | localStorage.theme = colorScheme === 'dark' ? 'light' : 'dark'; |
| 80 | window.dispatchEvent(new Event('storage')); |
| 81 | }; |
| 82 | let label = colorScheme === 'dark' ? 'Switch to light theme' : 'Switch to dark theme'; |
| 83 | |
| 84 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected