"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 pageComponent = require("./pageComponent.cjs");
const LayoutRenderer = require("../../bindingFacade/renderers/LayoutRenderer.cjs");
const FeedbackRenderer = require("../../bindingFacade/renderers/FeedbackRenderer.cjs");
const PersistButton = require("../../bindingFacade/buttons/PersistButton.cjs");
const CreatePage = pageComponent.pageComponent(
  ({ pageName, children, rendererProps, redirectOnSuccess, onPersistSuccess, ...entityProps }) => {
    return /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.DataBindingProvider, { stateComponent: FeedbackRenderer.FeedbackRenderer, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(reactBinding.EntitySubTree, { ...entityProps, onPersistSuccess: useOnPersistSuccess.useOnPersistSuccess({ redirectOnSuccess, onPersistSuccess }), isCreating: true, children: /* @__PURE__ */ jsxDevRuntime.jsxDEV(LayoutRenderer.LayoutRenderer, { ...rendererProps, actions: rendererProps?.actions ?? /* @__PURE__ */ jsxDevRuntime.jsxDEV(PersistButton.PersistButton, {}, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/CreatePage.tsx",
      lineNumber: 44,
      columnNumber: 76
    }, void 0), children }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/CreatePage.tsx",
      lineNumber: 44,
      columnNumber: 6
    }, void 0) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/CreatePage.tsx",
      lineNumber: 43,
      columnNumber: 5
    }, void 0) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/pageRouting/pageComponents/CreatePage.tsx",
      lineNumber: 42,
      columnNumber: 4
    }, void 0);
  },
  "CreatePage"
);
exports.CreatePage = CreatePage;
//# sourceMappingURL=CreatePage.cjs.map
