'use strict';

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

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

var _RecordTitleBar = require('../../components/record/RecordTitleBar');

var _RecordTitleBar2 = _interopRequireDefault(_RecordTitleBar);

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

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

var mapStateToProps = function mapStateToProps(state, ownProps) {
  var csid = ownProps.csid;


  return {
    data: (0, _reducers.getRecordData)(state, csid),
    isReadPending: (0, _reducers.isRecordReadPending)(state, csid)
  };
};

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