Files
web/app/[lang]/webview/my-pages/page.tsx
Christel Westerberg 158b5a5dbb fix: rebase issues
2024-05-28 08:30:20 +02:00

25 lines
722 B
TypeScript

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