var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { handleActions } from 'redux-actions';
import { updateBloqs, updateCode, } from '../actions/software';
var initialState = {
    code: '',
    bloqs: []
};
var software = handleActions(new Map([
    [
        updateBloqs,
        function (state, _a) {
            var payload = _a.payload;
            return (__assign({}, state, { bloqs: payload }));
        }
    ],
    [
        updateCode,
        function (state, _a) {
            var payload = _a.payload;
            return (__assign({}, state, { code: payload }));
        }
    ],
]), initialState);
export default software;
//# sourceMappingURL=software.js.map