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
32 lines
856 B
TypeScript
32 lines
856 B
TypeScript
import { TrackingSDK } from "@scandic-hotels/tracking/TrackingSDK"
|
|
import {
|
|
TrackingChannelEnum,
|
|
type TrackingSDKPageData,
|
|
} from "@scandic-hotels/tracking/types"
|
|
|
|
import styles from "./page.module.css"
|
|
|
|
import type { Lang } from "@scandic-hotels/common/constants/language"
|
|
|
|
export default async function HotelReservationPage(
|
|
props: PageProps<"/[lang]/hotelreservation">
|
|
) {
|
|
const params = await props.params
|
|
|
|
const pageTrackingData: TrackingSDKPageData = {
|
|
pageId: "hotelreservation",
|
|
domainLanguage: params.lang as Lang,
|
|
channel: TrackingChannelEnum["hotelreservation"],
|
|
pageName: "hotelreservation",
|
|
siteSections: "hotelreservation",
|
|
pageType: "hotelreservationstartpage",
|
|
siteVersion: "new-web",
|
|
}
|
|
|
|
return (
|
|
<div className={styles.page}>
|
|
<TrackingSDK pageData={pageTrackingData} />
|
|
</div>
|
|
)
|
|
}
|