import React from 'react' import { Control, Controller } from 'react-hook-form' import { CheckboxContainer, CheckboxFill, Container, Label } from './styles' interface CheckboxProps { label: string name: string control: Control } const Checkbox = ({ label, name, control }: CheckboxProps) => { return ( { return ( onChange(!value)}> {value && } ) }} /> ) } export default Checkbox