"use client" import { Monitor, Moon, Sun } from "lucide-react" import { useTranslations } from "next-intl" import { useTheme } from "next-themes" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select" type ThemeMode = "system" | "light" | "dark" export function AppearanceSettings() { const t = useTranslations("AppearanceSettings") const { theme, resolvedTheme, setTheme } = useTheme() const resolvedThemeLabel = resolvedTheme === "dark" ? t("resolvedTheme.dark") : resolvedTheme === "light" ? t("resolvedTheme.light") : t("resolvedTheme.unknown") return (
{t("sectionDescription")}
{t("currentTheme", { theme: resolvedThemeLabel })}