"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_redux_1 = require("react-redux");
var MenuBar_1 = require("../components/MenuBar");
var redux_1 = require("../redux");
var mapStateToProps = function (state, ownProps) {
    return {
        cursorMode: state.mode.cursorMode
    };
};
var mapDispatchToProps = function (dispatch, ownProps) {
    return {
        onClickEdit: function () { return dispatch(redux_1.mode.actions.setPen()); },
        onClickEraser: function () { return dispatch(redux_1.mode.actions.setEraser()); }
    };
};
exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(MenuBar_1.default);
//# sourceMappingURL=MenuBar.js.map