'use strict';

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

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

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

var _ValidationErrorNotification2 = _interopRequireDefault(_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)
});

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