'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _reactRedux = require('react-redux');

var _SearchResultPage = require('../../components/pages/SearchResultPage');

var _SearchResultPage2 = _interopRequireDefault(_SearchResultPage);

var _search = require('../../actions/search');

var _prefs = require('../../actions/prefs');

var _reducers = require('../../reducers');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var mapStateToProps = function mapStateToProps(state) {
  return {
    preferredPageSize: (0, _reducers.getSearchPageSize)(state)
  };
};

var mapDispatchToProps = {
  search: _search.search,
  setPreferredPageSize: _prefs.setSearchPageSize
};

exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_SearchResultPage2.default);