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
22 lines
683 B
TypeScript
22 lines
683 B
TypeScript
import { BookingWidget } from "@scandic-hotels/booking-flow/BookingWidget"
|
|
import { parseBookingWidgetSearchParams } from "@scandic-hotels/booking-flow/utils/url"
|
|
|
|
import { bookingFlowConfig } from "@/constants/bookingFlowConfig"
|
|
|
|
import type { Lang } from "@scandic-hotels/common/constants/language"
|
|
|
|
export default async function BookingWidgetPage(
|
|
props: PageProps<"/[lang]/hotelreservation">
|
|
) {
|
|
const searchParams = await props.searchParams
|
|
const params = await props.params
|
|
|
|
const booking = parseBookingWidgetSearchParams(searchParams)
|
|
|
|
const lang = params.lang as Lang
|
|
|
|
return (
|
|
<BookingWidget booking={booking} lang={lang} config={bookingFlowConfig} />
|
|
)
|
|
}
|