import cls from 'classnames'; import { type ReactNode } from 'react'; import TextButton from '../styled/TextButton'; const Checkbox = () => ( ); type Props = { label?: ReactNode; value: boolean; setValue: (v: boolean) => void; disabled?: boolean; className?: cls.Value; }; const CheckboxInput = ({ label, value, setValue, disabled, className }: Props) => ( !disabled && setValue(!value)} icon={Checkbox} className={cls( '!items-start text-left text-blueGray', { '[&_*]:fill-none': !value, 'pointer-events-none opacity-40': disabled }, className )} > {label} ); export default CheckboxInput;