"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _relation = require("../../actions/relation");
var _reducers = require("../../reducers");
var _HierarchySiblingList = _interopRequireDefault(require("../../components/record/HierarchySiblingList"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = (state, ownProps) => {
  const {
    parentCsid,
    recordType
  } = ownProps;
  const subject = {
    recordType
  };
  const object = {
    recordType,
    csid: parentCsid
  };
  return {
    findResult: (0, _reducers.getRelationFindResult)(state, subject, object, 'hasBroader')
  };
};
const mapDispatchToProps = {
  findRelations: _relation.find
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_HierarchySiblingList.default);
exports.default = _default;