* fix: findLang only returns acceptable languages * fix: fallback to use header x-lang if we haven't setLang yet * fix: languageSchema, allow uppercase Approved-by: Linus Flood
17 lines
466 B
TypeScript
17 lines
466 B
TypeScript
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>
|
|
)
|
|
}
|