Files
web/apps/scandic-web/app/[lang]/webview/hotelreservation/my-stay/page.tsx
Linus Flood cfa8c166a3 Merged in feat/sw-2403-mystay-webview (pull request #1828)
Feat/sw-2403 - Adding webview for MyStay

* feat/webview - added for my stay

* wip

* Passing headers so we can get the lang

* Cleanup

* Refactored and some performance improvements


Approved-by: Christian Andolf
2025-04-17 08:48:52 +00:00

22 lines
556 B
TypeScript

import { notFound } from "next/navigation"
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 function MyStayPage({
searchParams,
}: PageArgs<LangParams, { RefId?: string }>) {
if (!searchParams.RefId) {
notFound()
}
return (
<Suspense fallback={<MyStaySkeleton />}>
<MyStay refId={searchParams.RefId} />
</Suspense>
)
}