21 lines
572 B
TypeScript
21 lines
572 B
TypeScript
import { notFound } from "next/navigation"
|
|
import { Suspense } from "react"
|
|
|
|
import { MyStaySkeleton } from "@/components/HotelReservation/MyStay/myStaySkeleton"
|
|
import { Receipt } from "@/components/HotelReservation/MyStay/Receipt"
|
|
|
|
import type { LangParams, PageArgs } from "@/types/params"
|
|
|
|
export default async function ReceiptPage({
|
|
searchParams,
|
|
}: PageArgs<LangParams, { RefId?: string }>) {
|
|
if (!searchParams.RefId) {
|
|
notFound()
|
|
}
|
|
return (
|
|
<Suspense fallback={<MyStaySkeleton />}>
|
|
<Receipt refId={searchParams.RefId} />
|
|
</Suspense>
|
|
)
|
|
}
|