"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const RequestContext = require("../../routing/RequestContext.cjs");
const Page = (props) => {
  const request = RequestContext.useCurrentRequest();
  if (request === null) {
    return null;
  }
  return typeof props.children === "function" ? /* @__PURE__ */ jsxRuntime.jsx(props.children, { ...request.parameters }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.children });
};
Page.displayName = "Page";
Page.getPageName = (props) => props.name;
exports.Page = Page;
//# sourceMappingURL=Page.cjs.map
