import { useRecoilState } from "recoil"; import { Box, List, ListItem, ListItemText, ListSubheader, Typography, TextField, styled, Switch, Select, MenuItem, } from "@mui/material"; import { atomPaletteMode } from "../states/setting"; import PaletteSwitch from "../components/palette-switch"; const MiniListItem = styled(ListItem)(({ theme }) => ({ paddingTop: 5, paddingBottom: 5, })); const SettingPage = () => { const [mode, setMode] = useRecoilState(atomPaletteMode); return ( Setting 通用设置 setMode(c ? "dark" : "light")} /> ); }; export default SettingPage;