feat/my-stay-webview - check if user else redirect to refresh page * feat/my-stay-webview - check if user else redirect to refresh page Approved-by: Joakim Jäderberg
24 lines
639 B
TypeScript
24 lines
639 B
TypeScript
import TrackingSDK from "@/components/TrackingSDK"
|
|
import { getLang } from "@/i18n/serverContext"
|
|
|
|
import {
|
|
TrackingChannelEnum,
|
|
type TrackingSDKPageData,
|
|
} from "@/types/components/tracking"
|
|
|
|
export default async function Tracking() {
|
|
const lang = await getLang()
|
|
|
|
const pageTrackingData: TrackingSDKPageData = {
|
|
channel: TrackingChannelEnum.hotels,
|
|
domainLanguage: lang,
|
|
pageId: "my-stay",
|
|
pageName: `webview|hotelreservation|my-stay`,
|
|
pageType: "bookingmystaypage",
|
|
siteSections: `webview|hotelreservation|my-stay`,
|
|
siteVersion: "new-web",
|
|
}
|
|
|
|
return <TrackingSDK pageData={pageTrackingData} />
|
|
}
|