import { useTranslation } from "react-i18next"; import { Button, ButtonGroup } from "@mui/material"; type ThemeValue = IVergeConfig["theme_mode"]; interface Props { value?: ThemeValue; onChange?: (value: ThemeValue) => void; } const ThemeModeSwitch = (props: Props) => { const { value, onChange } = props; const { t } = useTranslation(); const modes = ["light", "dark", "system"] as const; return ( {modes.map((mode) => ( ))} ); }; export default ThemeModeSwitch;