"use client" import type { BaseFieldControlProps } from "../types" import { Switch } from "@/shared/components/ui/switch" export type CheckboxFieldProps = BaseFieldControlProps & { label?: string } export function CheckboxField({ value, onChange, onBlur, name, disabled, invalid, }: CheckboxFieldProps) { return ( onChange(checked === true)} onBlur={onBlur} name={name} disabled={disabled} aria-invalid={invalid || undefined} /> ) }