import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "./index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__Action_Drawer_mjs__ from "./Action.Drawer.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__Action_Modal_mjs__ from "./Action.Modal.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__Action_Page_mjs__ from "./Action.Page.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__Action_Sheet_mjs__ from "./Action.Sheet.mjs";
const ActionContainer = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>{
    const { openMode } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useActionContext)();
    if ('drawer' === openMode) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__Action_Drawer_mjs__.ActionDrawer, {
        footerNodeName: 'Action.Container.Footer',
        ...props
    });
    if ('modal' === openMode) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__Action_Modal_mjs__.ActionModal, {
        footerNodeName: 'Action.Container.Footer',
        ...props
    });
    if ('sheet' === openMode) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__Action_Sheet_mjs__.ActionSheet, {
        footerNodeName: 'Action.Container.Footer',
        ...props
    });
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__Action_Page_mjs__.ActionPage, {
        footerNodeName: 'Action.Container.Footer',
        ...props
    });
}, {
    displayName: 'ActionContainer'
});
ActionContainer.Footer = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)(()=>{
    const field = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
    const schema = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.RecursionField, {
        basePath: field.address,
        schema: schema,
        onlyRenderProperties: true
    });
}, {
    displayName: 'ActionContainer.Footer'
});
const Action_Container_rslib_entry_ = ActionContainer;
export { ActionContainer, Action_Container_rslib_entry_ as default };
