13 lines
258 B
TypeScript
13 lines
258 B
TypeScript
import { notFound } from "next/navigation"
|
|
|
|
import { env } from "@/env/server"
|
|
|
|
export default function HotelReservationLayout({
|
|
children,
|
|
}: React.PropsWithChildren) {
|
|
if (!env.ENABLE_BOOKING_FLOW) {
|
|
return notFound()
|
|
}
|
|
return <>{children}</>
|
|
}
|