'use strict';

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

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

var _RelatedMediaPanel = require('../../components/record/RelatedMediaPanel');

var _RelatedMediaPanel2 = _interopRequireDefault(_RelatedMediaPanel);

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

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

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


  return {
    recordData: (0, _reducers.getRecordData)(state, csid)
  };
};

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