"use client"; import { useTranslations } from "next-intl"; import { FieldValues, Path, UseFormReturn } from "react-hook-form"; import { GdprConsentCheckbox } from "../../../components/forms/GdprConsentCheckbox"; import { Link } from "../../../shadcnui"; interface GdprConsentSectionProps { form: UseFormReturn; termsCheckboxId?: Path; marketingCheckboxId?: Path; } export function GdprConsentSection({ form, termsCheckboxId = "termsAccepted" as Path, marketingCheckboxId = "marketingConsent" as Path, }: GdprConsentSectionProps) { const t = useTranslations("auth.gdpr"); const termsLabel = ( <> {t("terms_prefix")}{" "} {t("terms_of_service")} {" "} {t("and")}{" "} {t("privacy_policy")} ); return (
); }