import { serverClient } from "@/lib/trpc/server" import { Blocks } from "@/components/Loyalty/Blocks" import Sidebar from "@/components/Loyalty/Sidebar" import MaxWidth from "@/components/MaxWidth" import Title from "../TempDesignSystem/Text/Title" import styles from "./loyaltyPage.module.css" import type { LangParams } from "@/types/params" export default async function LoyaltyPage({ lang }: LangParams) { const loyaltyPage = await serverClient().contentstack.loyaltyPage.get() if (!loyaltyPage) { return null } return (
{loyaltyPage.sidebar.length ? ( ) : null} {loyaltyPage.heading} {loyaltyPage.blocks ? : null}
) }