"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,
    chartFontColor = _useContext.chartFontColor,
    chartColor = _useContext.chartColor,
    startDate = _useContext.startDate,
    endDate = _useContext.endDate,
    date = _useContext.date,
    mapInfo = _useContext.mapInfo,
    contentStyle = _useContext.contentStyle;
  return {
    theme: theme,
    tabPosition: 'top',
    isDark: theme === 'dark' || theme === 'blue',
    chartFontColor: chartFontColor,
    chartColor: chartColor,
    startDate: startDate,
    endDate: endDate,
    date: date,
    mapInfo: mapInfo,
    contentStyle: contentStyle
  };
};
var _default = exports["default"] = useSettings;
//# sourceMappingURL=useSettings.js.map
