"use client"; import Image from "next/image"; import { LANGUAGES } from "@/lib/languages"; import type { UiLanguage } from "@/types/language"; import { useTranslations } from "next-intl"; import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; interface LanguageSelectProps { value: UiLanguage; onChange: (lang: UiLanguage) => void; excludeId?: UiLanguage["id"]; } export function LanguageSelect({ value, onChange, excludeId }: LanguageSelectProps) { const t = useTranslations("Languages"); const options = LANGUAGES.filter((l) => l.id !== excludeId); return ( ); }