20 lines
597 B
TypeScript
20 lines
597 B
TypeScript
import { getBookingConfirmation } from "@/lib/trpc/memoizedRequests"
|
|
|
|
import BookingConfirmation from "@/components/HotelReservation/BookingConfirmation"
|
|
import { setLang } from "@/i18n/serverContext"
|
|
|
|
import type { LangParams, PageArgs } from "@/types/params"
|
|
|
|
export default async function BookingConfirmationPage({
|
|
params,
|
|
searchParams,
|
|
}: PageArgs<LangParams, { confirmationNumber: string }>) {
|
|
setLang(params.lang)
|
|
void getBookingConfirmation(searchParams.confirmationNumber)
|
|
return (
|
|
<BookingConfirmation
|
|
confirmationNumber={searchParams.confirmationNumber}
|
|
/>
|
|
)
|
|
}
|