import { FormControl, FormField, FormItem, FormLabel, } from '@/components/ui/form'; import { Switch } from '@/components/ui/switch'; import { ReactNode } from 'react'; import { useFormContext } from 'react-hook-form'; interface SwitchFormItemProps { name: string; label: ReactNode; } export function SwitchFormField({ label, name }: SwitchFormItemProps) { const form = useFormContext(); return ( ( {label} )} /> ); }