Files
web/apps/scandic-web/components/Blocks/DynamicContent/ManageCookieConsent/index.tsx
Erik Tiekstra 339e7195dc fix(BOOK-436): Added new section component and deprecated the other
Approved-by: Chuma Mcphoy (We Ahead)
2025-10-13 08:31:26 +00:00

30 lines
763 B
TypeScript

import { CookieConsentButton } from "@/components/Blocks/DynamicContent/ManageCookieConsent/CookieConsentButton"
import { Section } from "@/components/Section"
import { SectionHeader } from "@/components/Section/Header"
import SectionLink from "@/components/Section/Link"
interface ManageCookieConsentProps {
title?: string
subtitle?: string
link?: { href: string; text: string }
}
export function ManageCookieConsent({
title,
subtitle,
link,
}: ManageCookieConsentProps) {
return (
<Section>
<SectionHeader
link={link}
preamble={subtitle}
heading={title}
typography="Title/sm"
/>
<CookieConsentButton />
{link ? <SectionLink link={link} variant="mobile" /> : null}
</Section>
)
}