@snappmarket/config
Version:
> 🧮 babel, eslint, theme and etc
16 lines (12 loc) • 347 B
JavaScript
import { useContext } from 'react';
import ToolboxContext from '../context';
import GlobalConfig from '../config';
var useOptions = function useOptions() {
var _useContext = useContext(ToolboxContext),
options = _useContext.options;
if (!options) {
return GlobalConfig.options;
}
return options;
};
export default useOptions;