Files

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 />;
}