"use client"; import { FieldDescription, FieldLabel, Switch } from "../../shadcnui"; import { FormFieldWrapper } from "./FormFieldWrapper"; export function FormSwitch({ form, id, name, disabled, description, }: { form: any; id: string; name?: string; disabled?: boolean; description?: string; }) { return (
{(field) => (
{name && {name}}
)}
{description && {description}}
); }