27 lines
828 B
TypeScript
27 lines
828 B
TypeScript
import { serverClient } from "@/lib/trpc/server"
|
|
|
|
import BackButton from "@/components/BackButton"
|
|
import { Blocks } from "@/components/Loyalty/Blocks/WebView"
|
|
import Sidebar from "@/components/Loyalty/Sidebar"
|
|
import MaxWidth from "@/components/MaxWidth"
|
|
|
|
import styles from "./page.module.css"
|
|
|
|
import { LangParams, PageArgs } from "@/types/params"
|
|
|
|
export default async function AboutScandicFriends({
|
|
params,
|
|
}: PageArgs<LangParams>) {
|
|
const loyaltyPage = await serverClient().contentstack.loyaltyPage.get()
|
|
return (
|
|
<section className={styles.content}>
|
|
{loyaltyPage.sidebar ? <Sidebar blocks={loyaltyPage.sidebar} /> : null}
|
|
|
|
<MaxWidth className={styles.blocks} tag="main">
|
|
<BackButton />
|
|
<Blocks blocks={loyaltyPage.blocks} lang={params.lang} />
|
|
</MaxWidth>
|
|
</section>
|
|
)
|
|
}
|