fix(BOOK-436): Added new section component and deprecated the other

Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Erik Tiekstra
2025-10-13 08:31:26 +00:00
parent 7bd75f01e4
commit 339e7195dc
34 changed files with 245 additions and 177 deletions

View File

@@ -1,6 +1,6 @@
import { CookieConsentButton } from "@/components/Blocks/DynamicContent/ManageCookieConsent/CookieConsentButton"
import SectionContainer from "@/components/Section/Container"
import SectionHeader from "@/components/Section/Header"
import { Section } from "@/components/Section"
import { SectionHeader } from "@/components/Section/Header"
import SectionLink from "@/components/Section/Link"
interface ManageCookieConsentProps {
@@ -15,16 +15,15 @@ export function ManageCookieConsent({
link,
}: ManageCookieConsentProps) {
return (
<SectionContainer>
<Section>
<SectionHeader
link={link}
preamble={subtitle}
title={title}
headingAs="h3"
headingLevel="h2"
heading={title}
typography="Title/sm"
/>
<CookieConsentButton />
<SectionLink link={link} variant="mobile" />
</SectionContainer>
{link ? <SectionLink link={link} variant="mobile" /> : null}
</Section>
)
}