import type { Locale } from '@/hooks/use-locale'; import { useLocale } from '@/hooks/use-locale'; import { cn } from '@/lib/utils'; const languages: { value: Locale; label: string; name: string }[] = [ { value: 'id', label: 'ID', name: 'Bahasa Indonesia' }, { value: 'en', label: 'EN', name: 'English' }, ]; /** Two-option switch between Indonesian and English. */ export default function LanguageToggle({ className }: { className?: string }) { const { locale, setLocale } = useLocale(); return (