21 lines
875 B
TypeScript
21 lines
875 B
TypeScript
// AK-P16b · iframe embed variant `/b/{tenant}/{slug}/embed` (M06 Block H). Same
|
|
// loader/action as the canonical page; the loader detects `/embed` and drops the
|
|
// branding chrome. The permissive frame-ancestors header makes it embeddable on any
|
|
// tenant website (the page exposes only published, public booking data).
|
|
|
|
import { publicBookingLoader, publicBookingAction } from "~/modules/booking/routes/PublicBooking.server";
|
|
import PublicBookingRoute from "~/modules/booking/components/PublicBookingRoute";
|
|
import ServerError from "~/components/ui/errors/ServerError";
|
|
|
|
export function headers(): Record<string, string> {
|
|
return { "Content-Security-Policy": "frame-ancestors *" };
|
|
}
|
|
|
|
export const loader = publicBookingLoader;
|
|
export const action = publicBookingAction;
|
|
export default PublicBookingRoute;
|
|
|
|
export function ErrorBoundary() {
|
|
return <ServerError />;
|
|
}
|