28 lines
730 B
TypeScript
28 lines
730 B
TypeScript
import type { HousekeepingPageInput } from "../../../route-handlers";
|
|
import { hotelQuery } from "../queries/rooms";
|
|
import { HotelPageFrame, type HotelPageProps } from "./hotel-page-frame";
|
|
|
|
export function HotelNavigationPage(props: HotelPageProps) {
|
|
return (
|
|
<HotelPageFrame
|
|
title="Hotel navigation"
|
|
description="Inspect navigator categories and public rooms."
|
|
result={props.result}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export async function renderHotelNavigationPage(input: HousekeepingPageInput) {
|
|
const result = await hotelQuery.run(input.context, {
|
|
routeId: "hotel.navigation",
|
|
params: input.match.params,
|
|
});
|
|
return (
|
|
<HotelNavigationPage
|
|
context={input.context}
|
|
result={result}
|
|
routeId="hotel.navigation"
|
|
/>
|
|
);
|
|
}
|