import useContract from '../../../../hooks/use-contract'; import { Controller } from 'react-hook-form'; import { Checkbox } from '@theme/components'; import { partAttrs } from '@akinon/pz-theme/src/utils/part-styles'; import { useLocalization } from '@akinon/next/hooks'; import { Trans } from '@akinon/next/components/trans'; const CheckoutAgreements = ({ control, fieldId, error }) => { const { t } = useLocalization(); const { ContractButton: InfoContractButton, ContractModal: InfoContractModal } = useContract('info', t('checkout.agreement.info_contract')); const { ContractButton: SalesContractButton, ContractModal: SalesContractModal } = useContract('sales', t('checkout.agreement.sales_contract')); return ( <> ( // The stamp addresses the agreement ROW (Checkbox routes it to its // label wrapper): LOOK only — the consent itself is untouchable. , SalesContract: }} /> )} /> ); }; export default CheckoutAgreements;