'use strict';

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

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

var _MiniViewPopupAutocompleteInput = require('../../components/record/MiniViewPopupAutocompleteInput');

var _MiniViewPopupAutocompleteInput2 = _interopRequireDefault(_MiniViewPopupAutocompleteInput);

var _record = require('../../actions/record');

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

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

const mapStateToProps = state => ({
  perms: (0, _reducers.getUserPerms)(state)
});

const mapDispatchToProps = {
  clearRecord: _record.clearRecord
};

const ConnectedMiniViewPopupAutocompleteInput = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_MiniViewPopupAutocompleteInput2.default);

ConnectedMiniViewPopupAutocompleteInput.propTypes = _MiniViewPopupAutocompleteInput2.default.propTypes;

exports.default = ConnectedMiniViewPopupAutocompleteInput;