Files
web/apps/scandic-web/components/Webviews/LoyaltyPage/index.tsx
Anton Gunnarsson 923206ee4c Merged in chore/sw-3145-move-subtitle (pull request #2516)
chore(SW-3145): Move Title and Subtitle to design-system

* Move Title and Subtitle to design-system

* Fix export


Approved-by: Linus Flood
2025-07-04 06:22:28 +00:00

36 lines
941 B
TypeScript

import Title from "@scandic-hotels/design-system/Title"
import { serverClient } from "@/lib/trpc/server"
import MaxWidth from "@/components/MaxWidth"
import TrackingSDK from "@/components/TrackingSDK"
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} />
</>
)
}