import { env } from "@/env/server"

import { BookingWidget } from "@/components/BookingWidget"

import type { BookingWidgetSearchData } from "@/types/components/bookingWidget"
import type { LangParams, PageArgs } from "@/types/params"

export default async function BookingWidgetPage({
  searchParams,
}: PageArgs<LangParams, BookingWidgetSearchData>) {
  if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
    return null
  }

  return <BookingWidget bookingWidgetSearchParams={searchParams} />
}
