"use client" import { Monitor, Moon, Sun } from "lucide-react" import { useTheme } from "next-themes" import { useTranslations } from "next-intl" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/shared/components/ui/card" import { Label } from "@/shared/components/ui/label" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/shared/components/ui/select" type ThemeChoice = "system" | "light" | "dark" export function ThemePreferencesCard() { const t = useTranslations("settings.appearance.theme") const { theme, setTheme } = useTheme() const value: ThemeChoice = theme === "light" || theme === "dark" || theme === "system" ? theme : "system" return ( {t("title")} {t("description")}
) }