25 lines
498 B
TypeScript
25 lines
498 B
TypeScript
import { notFound } from "next/navigation"
|
|
|
|
import { env } from "@/env/server"
|
|
|
|
import styles from "./layout.module.css"
|
|
|
|
import { LangParams, LayoutArgs } from "@/types/params"
|
|
|
|
export default function HotelReservationLayout({
|
|
children,
|
|
sidePeek,
|
|
}: React.PropsWithChildren<LayoutArgs<LangParams>> & {
|
|
sidePeek: React.ReactNode
|
|
}) {
|
|
if (!env.ENABLE_BOOKING_FLOW) {
|
|
return notFound()
|
|
}
|
|
return (
|
|
<div className={styles.layout}>
|
|
{children}
|
|
{sidePeek}
|
|
</div>
|
|
)
|
|
}
|