Files
web/app/[lang]/webview/about-scandic-friends/page.tsx
Christel Westerberg 49f760705e feat: add webview pages
2024-05-28 08:29:20 +02:00

27 lines
733 B
TypeScript

import "@/app/globals.css"
import "@scandic-hotels/design-system/style.css"
import { serverClient } from "@/lib/trpc/server"
import MaxWidth from "@/components/MaxWidth"
import Content from "@/components/MyPages/AccountPage/Content"
import styles from "./page.module.css"
import type { LangParams, PageArgs, UriParams } from "@/types/params"
export default async function AboutScandicFriends({
params,
}: PageArgs<LangParams, UriParams>) {
const accountPage = await serverClient().contentstack.accountPage.get({
url: "/my-pages/overview",
lang: params.lang,
})
return (
<MaxWidth className={styles.blocks} tag="main">
<Content lang={params.lang} content={accountPage.content} />
</MaxWidth>
)
}