{ translate( 'By checking out:', {
comment:
'Headline before a list of terms the customer is agreeing to on checkout. Screenshot: https://user-images.githubusercontent.com/1379730/55166390-66c09080-5145-11e9-9c13-6c1b3b693786.png',
} ) }
<>
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ ! isGiftPurchase && }
{ shouldShowRefundPolicy && }
{ shouldShowBundledDomainNotice && }
{ shouldShowInternationalFeeNotice && }
{ shouldShowJetpackSocialAdvancedPricingDisclaimer && (
) }
>
);
}
/**
* Render a FoldableCard to contain TOS items or nothing if there are no items.
*/
function CheckoutTermsReadMore( { children }: { children: ReactNode } ) {
const translate = useTranslate();
// Note that this technique for finding children does not work for strings or
// empty fragments. Hopefully all children passed to this component are
// components themselves or null.
if ( ! children || Children.toArray( children ).filter( isValidElement ).length === 0 ) {
return null;
}
return (