"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _SearchToRelateModal = _interopRequireDefault(require("../../components/search/SearchToRelateModal"));
var _relation = require("../../actions/relation");
var _reducers = require("../../reducers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = state => ({
  perms: (0, _reducers.getUserPerms)(state)
});
const mapDispatchToProps = {
  showRelationNotification: _relation.showRelationNotification,
  createRelations: _relation.batchCreateBidirectional
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_SearchToRelateModal.default);
exports.default = _default;