fix: bookingwidget skeleton - hide if not enabled * fix: bookingwidget skeleton - hide if not enabled Approved-by: Michael Zetterberg
12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
import { env } from "@/env/server"
|
|
|
|
import { BookingWidgetSkeleton } from "@/components/BookingWidget/Client"
|
|
|
|
export default function LoadingBookingWidget() {
|
|
if (!env.ENABLE_BOOKING_WIDGET) {
|
|
return null
|
|
}
|
|
|
|
return <BookingWidgetSkeleton />
|
|
}
|