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