import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
import { useCurrentRequest } from "../../routing/RequestContext.js";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/pageRouting/Page.tsx";
const Page = (props) => {
  const request = useCurrentRequest();
  if (request === null) {
    return null;
  }
  return typeof props.children === "function" ? /* @__PURE__ */ jsxDEV(props.children, {
    ...request.parameters
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 19,
    columnNumber: 48
  }, void 0) : /* @__PURE__ */ jsxDEV(Fragment, {
    children: props.children
  }, void 0, false);
};
Page.displayName = "Page";
Page.getPageName = (props) => props.name;
export {
  Page
};
//# sourceMappingURL=Page.js.map
