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
24 lines
556 B
TypeScript
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>
|
|
)
|
|
}
|