in support-frontend/assets/pages/supporter-plus-thank-you/components/thankYouHeader/subheading.tsx [123:179]
function Subheading({
productKey,
contributionType,
amountIsAboveThreshold,
isSignedIn,
observerPrint,
identityUserType,
paymentStatus,
startDate,
}: SubheadingProps): JSX.Element {
const paperProductsKeys: ActiveProductKey[] = [
'NationalDelivery',
'HomeDelivery',
'SubscriptionCard',
];
const isPaper = paperProductsKeys.includes(productKey);
const isTier3 = productKey === 'TierThree';
const isGuardianAdLite = productKey === 'GuardianAdLite';
const subheadingCopy = getSubHeadingCopy(
productKey,
amountIsAboveThreshold,
contributionType,
isSignedIn,
identityUserType,
observerPrint,
startDate,
);
const isPending = paymentStatus === 'pending';
return (
<>
{isPending && !isPaper && pendingCopy()}
{subheadingCopy}
{!isGuardianAdLite && !isPending && !observerPrint && (
<>
<MarketingCopy
contributionType={contributionType}
isTier3={isTier3}
isPaper={isPaper}
/>
{identityUserType !== 'current' &&
!isTier3 &&
contributionType !== 'ONE_OFF' && (
<span
css={css`
font-weight: bold;
`}
>
{' '}
In the meantime, please sign in to get the best supporter
experience.
</span>
)}
</>
)}
</>
);
}