import { useField } from 'formik' const TextInput = ({ label, ...props }) => { const [field, meta] = useField(props) return ( <> {meta.touched && meta.error ? (
{meta.error}
) : null} ) } const Checkbox = ({ children, ...props }) => { const [field, meta] = useField({ ...props, type: 'checkbox' }) return ( <> {meta.touched && meta.error ? (
{meta.error}
) : null} ) } const Select = ({ label, ...props }) => { const [field, meta] = useField(props) return ( <>