import { Typography } from "@scandic-hotels/design-system/Typography" import { getProfile, getProfilingConsent } from "@/lib/trpc/memoizedRequests" import { GetMainIconByCSIdentifier, userHasConsent } from "../utils" import { BannerButton } from "./Button" import styles from "./profilingConsentBanner.module.css" export async function ProfilingConsentBanner() { const user = await getProfile() if (!user || userHasConsent(user?.profilingConsent)) return null const data = await getProfilingConsent() if (!data) return null const { icon, banner } = data.profiling_consent return (

{banner.header}

{banner.sub_header}

) }