import { env } from "@/env/server"

import TrackingSDK from "@/components/TrackingSDK"

import styles from "./page.module.css"

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

export default function HotelReservationPage({ params }: PageArgs<LangParams>) {
  if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
    return null
  }

  const pageTrackingData: TrackingSDKPageData = {
    pageId: "hotelreservation",
    domainLanguage: params.lang,
    channel: TrackingChannelEnum["hotelreservation"],
    pageName: "hotelreservation",
    siteSections: "hotelreservation",
    pageType: "hotelreservationstartpage",
    siteVersion: "new-web",
  }

  return (
    // eslint-disable-next-line formatjs/no-literal-string-in-jsx
    <div className={styles.page}>
      <TrackingSDK pageData={pageTrackingData} />
    </div>
  )
}
