'use strict';

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

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

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

var _HierarchyInput = require('../../components/record/HierarchyInput');

var _HierarchyInput2 = _interopRequireDefault(_HierarchyInput);

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

const mapStateToProps = (state, ownProps) => {
  const csid = ownProps.csid;


  return {
    isRecordModified: (0, _reducers.isRecordModifiedExceptPart)(state, csid, 'rel:relations-common-list')
  };
};

const ConnectedHierarchyInput = (0, _reactRedux.connect)(mapStateToProps)(_HierarchyInput2.default);

ConnectedHierarchyInput.propTypes = _HierarchyInput2.default.propTypes;

exports.default = ConnectedHierarchyInput;