import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
import * as __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__ from "../../api-client/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__application_index_mjs__ from "../../application/index.mjs";
const AppInner = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)((param)=>{
    let { children } = param;
    const app = (0, __WEBPACK_EXTERNAL_MODULE__application_index_mjs__.useApp)();
    const { notification } = __WEBPACK_EXTERNAL_MODULE_antd__.App.useApp();
    const apiClient = (0, __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useAPIClient)();
    (0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
        apiClient.notification = notification;
        app.notification = notification;
    }, [
        notification
    ]);
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
        children: children
    });
});
AppInner.displayName = 'AppInner';
const AntdAppProvider = (param)=>{
    let { children } = param;
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.App, {
        style: {
            height: '100%'
        },
        children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(AppInner, {
            children: children
        })
    });
};
AntdAppProvider.displayName = 'AntdAppProvider';
const AntdAppProvider_rslib_entry_ = AntdAppProvider;
export { AntdAppProvider_rslib_entry_ as default };
