"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _RecordTitleBar = _interopRequireDefault(require("../../components/record/RecordTitleBar"));
var _reducers = require("../../reducers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = (state, ownProps) => {
  const {
    csid
  } = ownProps;
  return {
    data: (0, _reducers.getRecordData)(state, csid),
    isReadPending: (0, _reducers.isRecordReadPending)(state, csid)
  };
};
var _default = (0, _reactRedux.connect)(mapStateToProps)(_RecordTitleBar.default);
exports.default = _default;