import { Suspense } from "react"

import { MyStay } from "@/components/HotelReservation/MyStay"
import { MyStaySkeleton } from "@/components/HotelReservation/MyStay/myStaySkeleton"

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

export default async function MyStayPage({
  params,
}: PageArgs<LangParams & { refId: string }>) {
  return (
    <Suspense fallback={<MyStaySkeleton />}>
      <MyStay reservationId={params.refId} />
    </Suspense>
  )
}
