import { notFound } from "next/navigation" import { Suspense } from "react" import SelectHotel from "@/components/HotelReservation/SelectHotel" import { SelectHotelSkeleton } from "@/components/HotelReservation/SelectHotel/SelectHotelSkeleton" import { setLang } from "@/i18n/serverContext" import { getHotelSearchDetails } from "../utils" import type { SelectHotelSearchParams } from "@/types/components/hotelReservation/selectHotel/selectHotelSearchParams" import type { LangParams, PageArgs } from "@/types/params" export default async function SelectHotelPage({ params, searchParams, }: PageArgs) { setLang(params.lang) const searchDetails = await getHotelSearchDetails({ searchParams }) if (!searchDetails) return notFound() const { city, urlSearchParams, adultsInRoom, childrenInRoom } = searchDetails if (!city) return notFound() const reservationParams = { selectHotelParams: urlSearchParams, searchParams, adultsInRoom, childrenInRoom, } return ( } > ) }