Files
web/apps/scandic-web/components/MyPages/Profile/CommunicationSettings/index.tsx
Chuma Mcphoy (We Ahead) 2b9bc8c3ce Merged in feat/LOY-497-Flag-Profiling-Consent (pull request #3292)
refactor(LOY-497): hide profiling consent behind feature flag

* refactor(LOY-497): hide profiling consent behind feature flag

* chore(LOY-497): up to date consent readme


Approved-by: Matilda Landström
2025-12-05 05:47:11 +00:00

24 lines
556 B
TypeScript

import { env } from "@/env/server"
import { getIntl } from "@/i18n"
import { Section } from "../Section"
import EmailSlot from "./Slots/Email"
import PersonalizationSlot from "./Slots/Personalization"
export async function CommunicationSettings() {
const intl = await getIntl()
return (
<Section
title={intl.formatMessage({
id: "profile.communicationSettings",
defaultMessage: "Communication settings",
})}
>
<EmailSlot />
{env.ENABLE_PROFILE_CONSENT && <PersonalizationSlot />}
</Section>
)
}