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