"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 keeps the same control in the same * spot: it has no dark variant of its own, so from Aero the moon flips to * Dark (the theme picker in Settings is how Aero comes back) — the toggle * used to disappear there, which left the chat header and the rail with no * theme control at all. */ export function ThemeToggle({ className, plain = false }: { className?: string; plain?: boolean }) { const { theme, toggle } = useTheme(); const { t } = useI18n(); const dark = theme === "dark"; return ( ); }