import { ChangeEvent, SetStateAction } from 'react'; import styles from '../Form.module.scss'; const TextArea = ({ id, name, value, setValue, required = false, label, }: { id: string; name: string; value: string; setValue: (value: SetStateAction) => void; required?: boolean; label?: string; }) => { const updateValue = (e: ChangeEvent) => { setValue(e.target.value); }; return ( <> {label && ( )}