"use client"; import { useTheme, type Theme } from "@/lib/theme"; import { haptic } from "@/lib/haptics"; import { useI18n } from "@/lib/i18n"; const OPTIONS: Array<{ id: Theme; labelKey: string }> = [ { id: "light", labelKey: "common.lightMode" }, { id: "dark", labelKey: "common.darkMode" }, { id: "aero", labelKey: "theme.aero" }, ]; /** * The theme picker: light, dark, or Frutiger Aero. Aero is not a dark/light * variant — it swaps the whole palette and scene — which is why the light/dark * toggles (header, rail, chat header) disappear while it is on. */ export function ThemeSection() { const { theme, setTheme } = useTheme(); const { t } = useI18n(); return (

{t("settings.theme")}

{OPTIONS.map((option) => ( ))}
{theme === "aero" ? ( <>

{t("theme.aeroNote")}

) : null}
); }