import { ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'; import { ctw } from '@/common/utils/ctw/ctw'; import { Check, Minus } from 'lucide-react'; import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; export const Checkbox_ = forwardRef< ElementRef, ComponentPropsWithoutRef >(({ className, checked, onCheckedChange, ...props }, ref) => ( {checked === 'indeterminate' && } {checked === true && } )); Checkbox_.displayName = CheckboxPrimitive.Root.displayName;