import { env } from "@/env/server" import { serverClient } from "@/lib/trpc/server" import SectionContainer from "@/components/Section/Container" import SectionHeader from "@/components/Section/Header" import SectionLink from "@/components/Section/Link" import ClientCurrentRewards from "./Client" import type { AccountPageComponentProps } from "@/types/components/myPages/myPage/accountPage" export default async function CurrentRewardsBlock({ title, subtitle, link, }: AccountPageComponentProps) { const rewardsResponse = await serverClient().contentstack.rewards.current() if (!rewardsResponse?.rewards.length) { return null } return ( ) }