feat(SW-237): Updated parallel route to the root layout

This commit is contained in:
Hrishikesh Vaipurkar
2024-08-30 15:46:36 +02:00
parent ad2182a60b
commit c2e521035b
10 changed files with 39 additions and 52 deletions

View File

@@ -0,0 +1 @@
export { default } from "../page"

View File

@@ -0,0 +1 @@
export { default } from "./page"

View File

@@ -0,0 +1,20 @@
import { serverClient } from "@/lib/trpc/server"
import BookingWidget from "@/components/BookingWidget"
import { getLang } from "@/i18n/serverContext"
export default async function BookingWidgetPage() {
// Get the booking widget show/hide status based on page specific settings
const bookingWidgetToggle =
await serverClient().contentstack.base.page_settings({
lang: getLang(),
})
return (
<>
{bookingWidgetToggle && bookingWidgetToggle.hideBookingWidget ? null : (
<BookingWidget />
)}
</>
)
}