feat: sw-929 show booking widget on hotelreservation path and separate env for sitewide alerts

This commit is contained in:
Linus Flood
2024-11-20 12:40:23 +01:00
parent 1330c8b537
commit ea325796e3
10 changed files with 72 additions and 7 deletions

View File

@@ -1 +1 @@
export { default } from "../../page"
export { default } from "../page"

View File

@@ -1 +1,21 @@
export { default } from "../page"
import { env } from "@/env/server"
import BookingWidget, { preload } from "@/components/BookingWidget"
import { PageArgs } from "@/types/params"
export default async function BookingWidgetHotelReservationPage({
searchParams,
}: PageArgs<{}, URLSearchParams>) {
if (env.HIDE_BOOKINGWIDGET_HOTELRESERVATION_PATH) {
return null
}
preload()
return <BookingWidget searchParams={searchParams} />
}
// TODO: This should just:
// export { default } from "../page"
// when current web is no more