import { SelectHotelPage as SelectHotelPagePrimitive } from "@scandic-hotels/booking-flow/pages/SelectHotelPage"

import { getLang } from "@/i18n/serverContext"

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

export default async function SelectHotelPage(props: PageArgs<LangParams>) {
  const searchParams = await props.searchParams
  const lang = await getLang()

  return <SelectHotelPagePrimitive lang={lang} searchParams={searchParams} />
}
