Files
web/apps/scandic-web/app/[lang]/(live)/(protected)/my-pages/profile/page.tsx
Christian Andolf 0c1396f2ee fix: remove useless imports and sort them
add missing key in iterator
2025-02-27 09:43:57 +01:00

24 lines
584 B
TypeScript

import { serverClient } from "@/lib/trpc/server"
import Profile from "@/components/MyPages/myprofile/profile/profile"
import TrackingSDK from "@/components/TrackingSDK"
import type { LangParams, PageArgs } from "@/types/params"
export { generateMetadata } from "@/utils/generateMetadata"
export default async function ProfilePage({}: PageArgs<LangParams>) {
const accountPage = await serverClient().contentstack.accountPage.get()
if (!accountPage) {
return null
}
return (
<>
<Profile />
<TrackingSDK pageData={accountPage.tracking} />
</>
)
}