"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = require("react");

var _vtxThemeProvider = require("../vtx-theme-provider");

/**
 * 获取配置信息
 * @returns
 */
var useSettings = function useSettings() {
  var _useContext = (0, _react.useContext)(_vtxThemeProvider.VtxThemeContext),
      theme = _useContext.theme; // const theme = 'dark';


  return {
    theme: theme,
    isDark: theme === 'dark'
  };
};

var _default = useSettings;
exports["default"] = _default;
//# sourceMappingURL=useSettings.js.map
