import { Option, Select } from "@mui/joy"; import { FC } from "react"; import { useTranslate } from "@/utils/i18n"; import Icon from "./Icon"; interface Props { value: Appearance; onChange: (appearance: Appearance) => void; className?: string; } const appearanceList = ["system", "light", "dark"] as const; const AppearanceSelect: FC = (props: Props) => { const { onChange, value, className } = props; const t = useTranslate(); const getPrefixIcon = (appearance: Appearance) => { const className = "w-4 h-auto"; if (appearance === "light") { return ; } else if (appearance === "dark") { return ; } else { return ; } }; const handleSelectChange = async (appearance: Appearance) => { onChange(appearance); }; return ( ); }; export default AppearanceSelect;