'use client'; import { Checkbox } from '@/components/ui/checkbox'; import { Label } from '@/components/ui/label'; export interface CheckboxInputProps { label: string; value?: boolean; defaultValue?: boolean; onChange: (value: boolean) => void; className?: string; disabled?: boolean; helpText?: string; required?: boolean; id?: string; } export default function CheckboxInput({ label, value, defaultValue = false, onChange, className = '', disabled = false, helpText, required = false, id, }: CheckboxInputProps) { const currentValue = value ?? defaultValue; const inputId = id || `checkbox-${Math.random().toString(36).substring(2, 11)}`; return (
{helpText && (

{helpText}

)}
); }