import { FC, ChangeEvent } from "react"; import { Select } from "@chakra-ui/react"; import { LangCode } from "lingva-scraper"; type Props = { value: string, onChange: (e: ChangeEvent) => void, langs: { [code in LangCode]: string }, detectedSource?: LangCode<"source">, [key: string]: any }; const LangSelect: FC = ({ value, onChange, langs, detectedSource, ...props }) => ( ); export default LangSelect;