import React from 'react'; import { useFormContext } from "react-hook-form"; type Props = { text: string; name: string; placeholder: string; additional: string; } export const Input: React.FC = ({text, name, placeholder, additional}) => { const { register } = useFormContext(); const options = {required: true, maxLength: 80, additional}; return( <> ) }