"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _reactRedux = require("react-redux"); var _channel = require("../../actions/channel"); var _publish = require("../../actions/publish"); var _view = _interopRequireDefault(require("./view")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var mapDispatchToProps = function mapDispatchToProps(dispatch) { return { onChannelLogin: function onChannelLogin(name, shortId, longId) { dispatch((0, _channel.updateLoggedInChannel)(name, shortId, longId)); dispatch((0, _publish.updateSelectedChannel)(name)); } }; }; var _default = (0, _reactRedux.connect)(null, mapDispatchToProps)(_view.default); exports.default = _default;