import TrackingSDK from "@/components/TrackingSDK"
import { getLang } from "@/i18n/serverContext"

import {
  TrackingChannelEnum,
  type TrackingSDKPageData,
} from "@/types/components/tracking"

export default function Tracking() {
  const lang = getLang()

  const pageTrackingData: TrackingSDKPageData = {
    channel: TrackingChannelEnum.hotels,
    domainLanguage: lang,
    pageId: "my-stay",
    pageName: `hotelreservation|my-stay`,
    pageType: "bookingmystaypage",
    siteSections: `hotelreservation|my-stay`,
    siteVersion: "new-web",
  }

  return <TrackingSDK pageData={pageTrackingData} />
}
