import { Button } from "@nous-research/ui/ui/components/button"; import { Typography } from "@/components/NouiTypography"; import { useI18n } from "@/i18n/context"; /** * Compact language toggle β€” shows a clickable flag that switches between * English and Chinese. Persists choice to localStorage. */ export function LanguageSwitcher() { const { locale, setLocale, t } = useI18n(); const toggle = () => setLocale(locale === "en" ? "zh" : "en"); return ( ); }