Refactor and fixed bug
This commit is contained in:
@@ -1 +1 @@
|
||||
export { default } from "../../page"
|
||||
export { default } from "../page"
|
||||
|
||||
17
app/[lang]/(live)/@bookingwidget/hotelreservation/page.tsx
Normal file
17
app/[lang]/(live)/@bookingwidget/hotelreservation/page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { env } from "@/env/server"
|
||||
|
||||
import BookingWidget, { preload } from "@/components/BookingWidget"
|
||||
|
||||
import { PageArgs } from "@/types/params"
|
||||
|
||||
export default async function BookingWidgetPage({
|
||||
searchParams,
|
||||
}: PageArgs<{}, URLSearchParams>) {
|
||||
if (!env.ENABLE_BOOKING_WIDGET_HOTELRESERVATION_PATH) {
|
||||
return null
|
||||
}
|
||||
|
||||
preload()
|
||||
|
||||
return <BookingWidget searchParams={searchParams} />
|
||||
}
|
||||
Reference in New Issue
Block a user