"use client"; import { ReactNode } from "react"; import { FieldValues, Path, UseFormReturn } from "react-hook-form"; import { Checkbox, FieldDescription } from "../../shadcnui"; import { FormFieldWrapper } from "./FormFieldWrapper"; interface GdprConsentCheckboxProps { form: UseFormReturn; id: Path; label: ReactNode; description?: string; required?: boolean; } export function GdprConsentCheckbox({ form, id, label, description, required, }: GdprConsentCheckboxProps) { return ( {(field) => (
{label} {required && *} {description && {description}}
)}
); }