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