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 SystemSettingsContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)(null);
SystemSettingsContext.displayName = 'SystemSettingsContext';
const useSystemSettings = ()=>(0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(SystemSettingsContext);
const SystemSettingsProvider = (props)=>{
    const result = (0, __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useRequest)({
        url: 'systemSettings:get/1?appends=logo'
    });
    if (result.loading) return;
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(SystemSettingsContext.Provider, {
        value: result,
        children: props.children
    });
};
export { SystemSettingsContext, SystemSettingsProvider, useSystemSettings };
