UNPKG

mrcio-ui

Version:

27 lines (20 loc) 851 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.theme = undefined; var _index = require("../constants/index"); var actionTypes = _interopRequireWildcard(_index); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } var theme = function theme() { var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "default"; var action = arguments[1]; switch (action.type) { case actionTypes.set_theme: return action.data || "default"; default: return type; } }; exports.theme = theme; //# sourceMappingURL=index.js.map