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 { updateComponents } from '../actions/hardware';
var initialBoard = {
    className: 'Zumjunior',
};
var initialState = {
    board: initialBoard,
    components: []
};
var hardware = handleActions(new Map([
    [
        updateComponents,
        function (state, _a) {
            var payload = _a.payload;
            return (__assign({}, state, { components: payload }));
        }
    ]
]), initialState);
export default hardware;
//# sourceMappingURL=hardware.js.map