import { useTranslation } from "react-i18next"; import { persistLanguage, SUPPORTED_LANGUAGES, type SupportedLanguage, } from "../i18n/config"; export function LanguageSwitcher({ compact = false }: { compact?: boolean }) { const { t, i18n } = useTranslation("common"); const current = (i18n.language as SupportedLanguage) || "nl-BE"; function handleChange(next: SupportedLanguage) { void i18n.changeLanguage(next); persistLanguage(next); } return ( ); }