22 lines
389 B
TypeScript
22 lines
389 B
TypeScript
import { notFound } from "next/navigation"
|
|
|
|
import { env } from "@/env/server"
|
|
|
|
import type { Metadata } from "next"
|
|
|
|
export const metadata: Metadata = {
|
|
robots: {
|
|
index: false,
|
|
follow: false,
|
|
},
|
|
}
|
|
|
|
export default function HotelReservationLayout({
|
|
children,
|
|
}: React.PropsWithChildren) {
|
|
if (!env.ENABLE_BOOKING_FLOW) {
|
|
return notFound()
|
|
}
|
|
return <>{children}</>
|
|
}
|