import useStickyState from '@/hooks/useStickyState' import { DarkModeOutlined, LaptopOutlined, LightModeOutlined, } from '@mui/icons-material' import { Button, FormControl, FormLabel, ToggleButtonGroup, useColorScheme, } from '@mui/joy' const ELEMENTID = 'select-theme-mode' const ThemeToggle = () => { const { mode, setMode } = useColorScheme() const [themeMode, setThemeMode] = useStickyState(mode, 'themeMode') const handleThemeModeChange = (_, newThemeMode) => { if (!newThemeMode) return setThemeMode(newThemeMode) setMode(newThemeMode) } const FormThemeModeToggleLabel = () => ( Theme mode ) return ( } value='light'> Light } value='dark'> Dark } value='system'> System ) } export default ThemeToggle