import { FunctionComponent } from 'react'; import { UseFormRegisterReturn } from 'react-hook-form'; interface FormTextAreaProps { placeholder?: string; formValidationSchema: UseFormRegisterReturn; error: boolean; id: string; rows: number; } /** * @example * ; * * @param props * @param props.placeholder The placeholder text for the textarea. * @param props.formValidationSchema The form register hook from react-hook-form. * @param props.error Whether or not the textarea has an error. * @param props.id The id of the textarea. * @param props.rows The number of rows to display in the textarea. */ const FormTextArea: FunctionComponent = ({ placeholder = '', formValidationSchema, error, id, rows, }) => (