import { memo, createElement } from "react";
import { DataBindingProvider, EntitySubTree } from "@contember/binding";
import { getPageName } from "./getPageName.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
import { LayoutRenderer } from "../../bindingFacade/renderers/LayoutRenderer.js";
const DetailPage = memo(({ pageName, children, rendererProps, ...entityProps }) => /* @__PURE__ */ createElement(DataBindingProvider, {
  stateComponent: FeedbackRenderer
}, /* @__PURE__ */ createElement(EntitySubTree, {
  ...entityProps
}, /* @__PURE__ */ createElement(LayoutRenderer, {
  ...rendererProps
}, children))));
DetailPage.displayName = "DetailPage";
DetailPage.getPageName = getPageName;
export { DetailPage };
//# sourceMappingURL=DetailPage.js.map
