import { Monitor, Moon, Sun } from "lucide-react"; import { useTranslation } from "react-i18next"; import { useTheme } from "../theme/use-theme"; import type { Theme } from "../theme/theme"; import { cn } from "@/lib/utils"; const OPTIONS: { value: Theme; Icon: typeof Sun }[] = [ { value: "light", Icon: Sun }, { value: "dark", Icon: Moon }, { value: "system", Icon: Monitor }, ]; export function ThemeSwitch() { const { t } = useTranslation(); const { theme, setTheme } = useTheme(); return (