feat: trackingsdk as client component * feat: trackingsdk as client component * Cleanup * Merge changes from feat/trackingsdk-client * revert yarn.lock * Added lcpTime and wait with tracking until we have the values Approved-by: Joakim Jäderberg
26 lines
618 B
TypeScript
26 lines
618 B
TypeScript
import { Suspense } from "react"
|
|
|
|
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} />
|
|
</>
|
|
)
|
|
}
|