import React, { useState } from 'react'; import { Button } from './Button.tsx'; import { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuTrigger, DropdownMenuRadioItem, } from './DropdownMenu.tsx'; import store from '~/store'; import { useRecoilValue } from 'recoil'; import { localize } from '~/localization/Translation'; const ModelSelect = ({ model, onChange, availableModels, ...props }) => { const [menuOpen, setMenuOpen] = useState(false); const lang = useRecoilValue(store.lang); return ( event.preventDefault()} > {localize(lang, 'com_ui_select_model')} {availableModels.map((model) => ( {model} ))} ); }; export default ModelSelect;