import { cn } from '@/utils/cn'; import { slug } from '@/utils/slug'; import type { LucideIcon } from 'lucide-react'; import { forwardRef } from 'react'; import type { ControllerRenderProps } from 'react-hook-form'; import { Switch } from '../ui/switch'; type Props = { label: string; description: string; Icon: LucideIcon; children?: React.ReactNode; error?: string; } & ControllerRenderProps; export const CheckboxItem = forwardRef( ( { label, description, Icon, children, onChange, value, disabled, error }, ref, ) => { const id = slug(label); return (
{children}
); }, ); CheckboxItem.displayName = 'CheckboxItem';