import type { InputHTMLAttributes, JSX } from 'react' export interface CheckboxProps extends InputHTMLAttributes { set?: (value: boolean) => void } function Checkbox({ set, className = '', checked, ...rest }: CheckboxProps): JSX.Element { return (
(set ? set(event.target.checked) : null)} type="checkbox" {...rest} />
) } export default Checkbox