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