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