2018-05-23 04:06:37 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
|
value: true
|
|
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
|
|
|
|
var _reactRedux = require("react-redux");
|
|
|
|
|
|
|
|
var _show = require("../../actions/show");
|
|
|
|
|
|
|
|
var _view = _interopRequireDefault(require("./view"));
|
|
|
|
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
|
|
|
|
var mapStateToProps = function mapStateToProps(_ref) {
|
2018-06-01 03:16:19 +02:00
|
|
|
var show = _ref.show,
|
|
|
|
defaultThumbnail = _ref.site.defaultThumbnail;
|
2018-05-23 04:06:37 +02:00
|
|
|
// select channel key
|
|
|
|
var request = show.requestList[show.request.id];
|
|
|
|
var channelKey = request.key; // select channel claims
|
|
|
|
|
|
|
|
var channel = show.channelList[channelKey] || null; // return props
|
|
|
|
|
|
|
|
return {
|
|
|
|
channelKey: channelKey,
|
2018-06-01 03:16:19 +02:00
|
|
|
channel: channel,
|
|
|
|
defaultThumbnail: defaultThumbnail
|
2018-05-23 04:06:37 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
var mapDispatchToProps = {
|
|
|
|
onUpdateChannelClaims: _show.onUpdateChannelClaims
|
|
|
|
};
|
|
|
|
|
|
|
|
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_view.default);
|
|
|
|
|
|
|
|
exports.default = _default;
|