/* eslint-disable react/require-default-props */ import { FunctionComponent } from 'react'; import { FieldError, UseFormRegisterReturn } from 'react-hook-form'; interface FormInputProps { placeholder?: string; formValidationSchema: UseFormRegisterReturn; error: boolean; // eslint-disable-next-line react/require-default-props type: 'email' | 'password' | 'text' | 'date'; id: string; height?: string; } const FormTextInput: FunctionComponent = ({ placeholder = '', formValidationSchema, error, type, id, }) => ( ); export default FormTextInput;