"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _MediaViewerPanel = _interopRequireDefault(require("../../components/media/MediaViewerPanel"));
var _search = require("../../actions/search");
var _reducers = require("../../reducers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = (state, ownProps) => {
  const {
    name,
    searchDescriptor
  } = ownProps;
  return {
    searchResult: (0, _reducers.getSearchResult)(state, name, searchDescriptor)
  };
};
const mapDispatchToProps = {
  search: _search.search
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_MediaViewerPanel.default);
exports.default = _default;