"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _RecordBatchPanel = _interopRequireDefault(require("../../components/record/RecordBatchPanel"));
var _batch = require("../../actions/batch");
var _reducers = require("../../reducers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = (state, ownProps) => {
  const {
    csid
  } = ownProps;
  return {
    perms: (0, _reducers.getUserPerms)(state),
    recordData: (0, _reducers.getRecordData)(state, csid)
  };
};
const mapDispatchToProps = {
  invoke: _batch.invoke
};
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_RecordBatchPanel.default);
exports.default = _default;