import { useContext } from 'react';
import { VtxThemeContext } from "../_components/vm-theme-provider";

/**
 * 获取配置信息
 * @returns
 */
var useSettings = function useSettings() {
  var _useContext = useContext(VtxThemeContext),
    theme = _useContext.theme,
    chartFontColor = _useContext.chartFontColor,
    chartLineColor = _useContext.chartLineColor,
    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,
    chartLineColor: chartLineColor,
    startDate: startDate,
    endDate: endDate,
    date: date,
    mapInfo: mapInfo,
    contentStyle: contentStyle
  };
};
export default useSettings;