import { FC, useState } from 'react'; import classes from './styles.module.scss'; type SelectorProps = { field: string; handleSetValue: (field: string, value: string) => void; list: string[]; }; const Selector: FC = ({ field, handleSetValue, list }) => { const [inputValue, setInputValue] = useState(''); const handleChange = (e: React.ChangeEvent) => { const value = e.target.value; setInputValue(value); handleSetValue(field, value); }; const handleInputChange = (e: React.ChangeEvent) => { const value = e.target.value; setInputValue(value); handleSetValue(field, value); }; return (
); }; export default Selector;