"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

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

var _ValidationErrorNotification = _interopRequireDefault(require("../../components/notification/ValidationErrorNotification"));

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

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

const mapStateToProps = (state, ownProps) => ({
  errors: (0, _reducers.getRecordValidationErrors)(state, ownProps.csid)
});

var _default = (0, _reactRedux.connect)(mapStateToProps)(_ValidationErrorNotification.default);

exports.default = _default;