import Label from '@/components/elements/Label'; import React from 'react'; import { Field, FieldProps } from 'formik'; import Input from '@/components/elements/Input'; import tw from 'twin.macro'; interface Props { name: string; label?: string; className?: string; } type OmitFields = 'ref' | 'name' | 'value' | 'type'; type InputProps = Omit; const Checkbox = ({ name, label, className, ...props }: Props & InputProps) => ( {({ field }: FieldProps) => { return (
{label &&
}
); }}
); export default Checkbox;