in support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx [53:108]
export function FooterTsAndCs({
productKey,
countryGroupId,
}: {
productKey: ActiveProductKey;
countryGroupId: CountryGroupId;
}) {
const privacy = <a href={privacyLink}>Privacy Policy</a>;
const getProductNameSummary = (): string => {
switch (productKey) {
case 'GuardianAdLite':
return 'the Guardian Ad-Lite';
case 'TierThree':
return 'Digital + print';
default:
return 'our';
}
};
const getProductTerms = (): JSX.Element => {
switch (productKey) {
case 'GuardianAdLite':
return termsLink('Terms', guardianAdLiteTermsLink);
case 'DigitalSubscription':
return termsLink('Terms and Conditions', digitalSubscriptionTermsLink);
case 'SupporterPlus':
return termsLink('Terms and Conditions', supporterPlusTermsLink);
case 'TierThree':
return termsLink('Terms', tierThreeTermsLink);
case 'HomeDelivery':
case 'NationalDelivery':
case 'SubscriptionCard':
return termsLink('Terms & Conditions', paperTermsLink);
case 'GuardianWeeklyDomestic':
case 'GuardianWeeklyRestOfWorld':
return termsLink('Terms & Conditions', guardianWeeklyTermsLink);
default:
return termsLink(
'Terms and Conditions',
contributionsTermsLinks[countryGroupId],
);
}
};
return (
<div css={marginTop}>
By proceeding, you are agreeing to {getProductNameSummary()}{' '}
{getProductTerms()}.{' '}
<p css={marginTop}>
To find out what personal data we collect and how we use it, please
visit our {privacy}.
</p>
<p css={marginTop}>
<StripeDisclaimer />
</p>
</div>
);
}