Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/apps/web/app/routes/customer-portal/layout.tsx
T

14 lines
439 B
TypeScript

import { Outlet, type LoaderFunctionArgs } from "react-router";
import { isPortalRuntimeSurface } from "~/services/customer-portal/portal-root.server";
import { portalNotFound } from "~/services/customer-portal/portal-data.server";
export async function loader(_args: LoaderFunctionArgs) {
if (!isPortalRuntimeSurface()) throw portalNotFound();
return null;
}
export default function CustomerPortalLayout() {
return <Outlet />;
}