"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _WatchedSearchResultTable = _interopRequireDefault(require("../../components/search/WatchedSearchResultTable"));
var _reducers = require("../../reducers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = (state, ownProps) => {
  const {
    searchName,
    searchDescriptor
  } = ownProps;
  return {
    searchResult: (0, _reducers.getSearchResult)(state, searchName, searchDescriptor),
    searchError: (0, _reducers.getSearchError)(state, searchName, searchDescriptor)
  };
};
var _default = (0, _reactRedux.connect)(mapStateToProps)(_WatchedSearchResultTable.default);
exports.default = _default;