import { STTConfig, STTConfigValidator } from "../store"; import Locale from "../locales"; import { ListItem, Select } from "./ui-lib"; import { DEFAULT_STT_ENGINES } from "../constant"; import { isFirefox } from "../utils"; export function STTConfigList(props: { sttConfig: STTConfig; updateConfig: (updater: (config: STTConfig) => void) => void; }) { return ( <> props.updateConfig( (config) => (config.enable = e.currentTarget.checked), ) } > {!isFirefox() && ( )} ); }