import { memo, createElement } from "react";
import { DataBindingProvider, EntityListSubTree } from "@contember/binding";
import { getPageName } from "./getPageName.js";
import { ImmutableEntityListPageRenderer } from "../../bindingFacade/renderers/pageRenderers/ImmutableEntityListPageRenderer.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const ListPage = memo(({
  children,
  rendererProps,
  pageName,
  ...entityListProps
}) => /* @__PURE__ */ createElement(DataBindingProvider, {
  stateComponent: FeedbackRenderer
}, /* @__PURE__ */ createElement(EntityListSubTree, {
  ...entityListProps,
  listComponent: ImmutableEntityListPageRenderer,
  listProps: rendererProps
}, children)));
ListPage.getPageName = getPageName;
export { ListPage };
//# sourceMappingURL=ListPage.js.map
