| 4 | import * as React from 'react'; |
| 5 | |
| 6 | export const DumpCheckbox = ({ checked }: { checked: boolean }) => { |
| 7 | return ( |
| 8 | <div |
| 9 | className={cn( |
| 10 | 'block h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', |
| 11 | checked && 'bg-primary text-primary-foreground', |
| 12 | )} |
| 13 | > |
| 14 | <div className="flex items-center justify-center text-current"> |
| 15 | {checked && <Check className="h-4 w-4" />} |
| 16 | </div> |
| 17 | </div> |
| 18 | ); |
| 19 | }; |
| 20 | |
| 21 | const Checkbox = React.forwardRef< |
| 22 | React.ElementRef<typeof CheckboxPrimitive.Root>, |