import React from 'react'; import { useFormContext } from "react-hook-form"; type Props = { text: string; name: string; children?: JSX.Element[] | JSX.Element; } export const Select: React.FC = ({text, name}) => { const { register } = useFormContext(); return( <> ) }