import { RiCheckLine } from '@remixicon/react' import cn from '@/utils/classnames' type CheckboxProps = { checked?: boolean onCheck?: () => void className?: string disabled?: boolean } const Checkbox = ({ checked, onCheck, className, disabled }: CheckboxProps) => { if (!checked) { return (
{ if (disabled) return onCheck?.() }} >
) } return (
{ if (disabled) return onCheck?.() }} >
) } export default Checkbox