"use client"; import { MoonIcon, SunIcon } from "@/components/icons"; import { haptic } from "@/lib/haptics"; import { useI18n } from "@/lib/i18n"; import { useTheme } from "@/lib/theme"; import { cn } from "@/lib/utils"; /** * The light/dark flip. Frutiger Aero has no such switch (the theme picker in * Settings owns it), so this renders nothing while aero is on — the state * comes from the shared store in lib/theme, so a change in Settings hides * this immediately. */ export function ThemeToggle({ className, plain = false }: { className?: string; plain?: boolean }) { const { theme, toggle } = useTheme(); const { t } = useI18n(); const dark = theme === "dark"; if (theme === "aero") return null; return ( ); }