import { useGlobalStates } from '@cap-rel/smartcommon'; import { Boolean } from '@cap-rel/smartcommon'; function ThemeToggle() { const gst = useGlobalStates(); const settings = gst.get('settings'); const toggleTheme = () => { gst.local.set('settings', { ...settings, theme: settings.theme === 'light' ? 'dark' : 'light' }); }; return ( ); }