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__api_client_index_mjs__ from "../../api-client/index.mjs";
const CurrentAppInfoContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
CurrentAppInfoContext.displayName = 'CurrentAppInfoContext';
const useCurrentAppInfo = ()=>(0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(CurrentAppInfoContext);
const CurrentAppInfoProvider = (props)=>{
    const result = (0, __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useRequest)({
        url: 'app:getInfo'
    });
    if (result.loading) return;
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(CurrentAppInfoContext.Provider, {
        value: result.data,
        children: props.children
    });
};
export { CurrentAppInfoContext, CurrentAppInfoProvider, useCurrentAppInfo };
