import { SelectHotelMapPage as SelectHotelMapPagePrimitive } from "@scandic-hotels/booking-flow/pages/SelectHotelMapPage"

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

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

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

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