import { jsxDEV } from "react/jsx-dev-runtime";
import { DataBindingProvider, EntitySubTree } from "@contember/binding";
import { useOnPersistSuccess } from "../useOnPersistSuccess.js";
import { scopeComponent } from "./scopeComponent.js";
import { FeedbackRenderer } from "../../bindingFacade/renderers/FeedbackRenderer.js";
const CreateScope = scopeComponent(
  ({ children, redirectOnSuccess, onPersistSuccess, ...entityProps }) => {
    return /* @__PURE__ */ jsxDEV(DataBindingProvider, { stateComponent: FeedbackRenderer, children: /* @__PURE__ */ jsxDEV(EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), isCreating: true, children }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 30,
      columnNumber: 5
    }, globalThis) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 29,
      columnNumber: 4
    }, globalThis);
  },
  "CreateScope"
);
export {
  CreateScope
};
//# sourceMappingURL=CreateScope.js.map
