import { DetailedHTMLProps, InputHTMLAttributes } from 'react' type ICheckbox = { value?: boolean label?: string } & Omit< DetailedHTMLProps, HTMLInputElement>, 'value' > const Checkbox = ({ name, label, id, value = false, type, ...props }: ICheckbox) => { return ( <> {label && } ) } export default Checkbox