import { jsx } from "react/jsx-runtime";
import { DataBindingProvider, EntityListSubTree } from "@contember/react-binding";
import { scopeComponent } from "./scopeComponent.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
import { MutableEntityListRenderer } from "../../bindingFacade/renderers/listRenderers/MutableEntityListRenderer.js";
const MultiEditScope = scopeComponent(
  ({
    children,
    refreshDataBindingOnPersist,
    skipBindingStateUpdateAfterPersist,
    stateComponent,
    stateProps,
    ...entityListProps
  }) => /* @__PURE__ */ jsx(
    DataBindingProvider,
    {
      stateComponent: stateComponent ?? FeedbackRenderer,
      stateProps,
      refreshOnPersist: refreshDataBindingOnPersist ?? true,
      skipStateUpdateAfterPersist: skipBindingStateUpdateAfterPersist,
      children: /* @__PURE__ */ jsx(EntityListSubTree, { ...entityListProps, listComponent: MutableEntityListRenderer, children })
    }
  ),
  "MultiEditScope"
);
export {
  MultiEditScope
};
//# sourceMappingURL=MultiEditScope.js.map
