Upgrade next@15.5.6 * chore: upgrade next@15.5.6 * chore: upgrade turborepo@2.6.1 * fix typings for scandic-web * fix: set correct type for pages * cleanup * fix more route.ts typing issues * Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/upgrade-next * explicitly import the types Approved-by: Linus Flood
20 lines
512 B
TypeScript
20 lines
512 B
TypeScript
import { TrackingSDK } from "@scandic-hotels/tracking/TrackingSDK"
|
|
|
|
import { serverClient } from "@/lib/trpc/server"
|
|
|
|
import Profile from "@/components/MyPages/Profile"
|
|
|
|
export { generateMetadata } from "@/utils/metadata/generateMetadata"
|
|
|
|
export default async function ProfilePage() {
|
|
const caller = await serverClient()
|
|
const accountPage = await caller.contentstack.accountPage.get()
|
|
|
|
return (
|
|
<>
|
|
<Profile />
|
|
{accountPage && <TrackingSDK pageData={accountPage.tracking} />}
|
|
</>
|
|
)
|
|
}
|