"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxDevRuntime = require("react/jsx-dev-runtime");
const reactBinding = require("@contember/react-binding");
const useOnPersistSuccess = require("../useOnPersistSuccess.cjs");
const scopeComponent = require("./scopeComponent.cjs");
const FeedbackRenderer = require("../../bindingFacade/renderers/FeedbackRenderer.cjs");
const CreateScope = scopeComponent.scopeComponent(
  ({
    children,
    redirectOnSuccess,
    onPersistSuccess,
    stateComponent,
    stateProps,
    ...entityProps
  }) => {
    return /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.DataBindingProvider, { stateComponent: stateComponent ?? FeedbackRenderer.FeedbackRenderer, stateProps, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess.useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), isCreating: true, children }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 39,
      columnNumber: 5
    }, void 0) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/Scopes/CreateScope.tsx",
      lineNumber: 38,
      columnNumber: 4
    }, void 0);
  },
  "CreateScope"
);
exports.CreateScope = CreateScope;
//# sourceMappingURL=CreateScope.cjs.map
