securityos/node_modules/next/dist/esm/client/components/dev-root-not-found-boundary.js

19 lines
597 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use client";
import React from "react";
import { NotFoundBoundary } from "./not-found-boundary";
export function bailOnNotFound() {
throw new Error("notFound() is not allowed to use in root layout");
}
function NotAllowedRootNotFoundError() {
bailOnNotFound();
return null;
}
export function DevRootNotFoundBoundary(param) {
let { children } = param;
return /*#__PURE__*/ React.createElement(NotFoundBoundary, {
notFound: /*#__PURE__*/ React.createElement(NotAllowedRootNotFoundError, null)
}, children);
}
//# sourceMappingURL=dev-root-not-found-boundary.js.map