import { FC } from 'react'; import { AssistantLanguage } from '../../voice/languages'; interface Props { /** The language currently in effect, already resolved (never null) — for display. */ current: AssistantLanguage; /** * The RAW stored preference: `null` means "follow the interface". * * The select must be driven by this rather than by `current`, or the two * states collapse: while following an English interface, English is already * the shown option, so choosing English fires no change event and the * preference can never be pinned — and a later interface switch then moves * the assistant language with it, which is exactly what the user was trying * to prevent. */ selected: string | null; /** `null` restores "follow the interface language". */ onChange: (code: string | null) => void; disabled?: boolean; } /** * Pick the language you SPEAK to the assistant (BOFF-7108). * * A native `