import { jsx } from "react/jsx-runtime";
import { createContext, useContext } from "react";
import { useRequest } from "../../api-client/index.mjs";
const SystemSettingsContext = /*#__PURE__*/ createContext(null);
SystemSettingsContext.displayName = 'SystemSettingsContext';
const useSystemSettings = ()=>useContext(SystemSettingsContext);
const SystemSettingsProvider = (props)=>{
    const result = useRequest({
        url: 'systemSettings:get'
    });
    return /*#__PURE__*/ jsx(SystemSettingsContext.Provider, {
        value: {
            ...result
        },
        children: props.children
    });
};
export { SystemSettingsContext, SystemSettingsProvider, useSystemSettings };
