Merge branch 'master' into feat/sw-929-release-preps
This commit is contained in:
21
app/[lang]/(live)/@footer/[...path]/page.tsx
Normal file
21
app/[lang]/(live)/@footer/[...path]/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user