in dotcom-rendering/src/components/marketing/header/HeaderWrapper.tsx [62:107]
ctaUrl: addRegionIdAndTrackingParamsToSupportUrl(
cta.baseUrl,
tracking,
numArticles,
countryCode,
),
ctaText: cta.text,
};
};
const primaryCta = content.primaryCta
? buildEnrichedCta(content.primaryCta)
: null;
const secondaryCta = content.secondaryCta
? buildEnrichedCta(content.secondaryCta)
: null;
const renderedContent: HeaderRenderedContent = {
heading: content.heading,
subheading: content.subheading,
primaryCta,
secondaryCta,
};
const mobilePrimaryCta = mobileContent?.primaryCta
? buildEnrichedCta(mobileContent.primaryCta)
: primaryCta;
const mobileSecondaryCta = mobileContent?.secondaryCta
? buildEnrichedCta(mobileContent.secondaryCta)
: secondaryCta;
const renderedMobileContent = mobileContent
? ({
heading: mobileContent.heading,
subheading: mobileContent.subheading,
primaryCta: mobilePrimaryCta,
secondaryCta: mobileSecondaryCta,
} as HeaderRenderedContent)
: undefined;
const { abTestName, abTestVariant, componentType, campaignCode } =
tracking;
const onCtaClick = (componentId: string) => {
return (): void => {