Files
web/apps/scandic-web/components/Webviews/LoyaltyPage/index.tsx
Joakim Jäderberg 7dee6d5083 Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details

Approved-by: Anton Gunnarsson
2025-09-11 07:16:24 +00:00

36 lines
957 B
TypeScript

import Title from "@scandic-hotels/design-system/Title"
import { TrackingSDK } from "@scandic-hotels/tracking/TrackingSDK"
import { serverClient } from "@/lib/trpc/server"
import MaxWidth from "@/components/MaxWidth"
import LinkToOverview from "@/components/Webviews/LinkToOverview"
import Blocks from "./Blocks"
import styles from "./loyaltyPage.module.css"
export default async function AboutScandicFriends() {
const caller = await serverClient()
const loyaltyPageRes = await caller.contentstack.loyaltyPage.get()
if (!loyaltyPageRes) {
return null
}
const { tracking, loyaltyPage } = loyaltyPageRes
return (
<>
<section className={styles.content}>
<LinkToOverview />
<MaxWidth tag="main" className={styles.blocks}>
<Title>{loyaltyPage.heading}</Title>
<Blocks blocks={loyaltyPage.blocks} />
</MaxWidth>
</section>
<TrackingSDK pageData={tracking} />
</>
)
}