import { serverClient } from "@/lib/trpc/server"
import { auth } from "@/auth"
import { Blocks } from "@/components/Loyalty/Blocks"
import * as LoyaltySidebar from "@/components/Loyalty/Sidebar"
import MaxWidth from "@/components/MaxWidth"
import Sidebar from "@/components/MyPages/Sidebar"
import Breadcrumbs from "../MyPages/Breadcrumbs"
import styles from "./loyaltyPage.module.css"
import { LangParams } from "@/types/params"
export default async function LoyaltyPage({ lang }: LangParams) {
const loyaltyPage = await serverClient().contentstack.loyaltyPage.get()
const session = await auth()
return (
<>
{session ? : null}
{session ? (
) : loyaltyPage.sidebar.length ? (
) : null}
{loyaltyPage.blocks ? : null}
>
)
}