* fix: findLang only returns acceptable languages * fix: fallback to use header x-lang if we haven't setLang yet * fix: languageSchema, allow uppercase Approved-by: Linus Flood
20 lines
500 B
TypeScript
20 lines
500 B
TypeScript
import "./profileLayout.css"
|
|
|
|
import { serverClient } from "@/lib/trpc/server"
|
|
|
|
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 <TrackingSDK pageData={accountPage.tracking} />
|
|
}
|