lml-main
Version:
This is now a mono repository published into many standalone packages.
20 lines • 754 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var actions_1 = require("../actions");
exports.initialAutoAllocationState = {
autoAllocationGlobal: false,
};
exports.autoAllocationReducer = function (state, action) {
if (state === void 0) { state = exports.initialAutoAllocationState; }
switch (action.type) {
case actions_1.SET_AUTO_ALLOCATION_GLOBAL: {
return setAutoAllocationGlobal(state, action);
}
default: {
return state;
}
}
};
var setAutoAllocationGlobal = function (state, action) { return (tslib_1.__assign({}, state, { autoAllocationGlobal: action.autoAllocationGlobal })); };
//# sourceMappingURL=auto.js.map