cspace-ui
Version:
CollectionSpace user interface for browsers
18 lines (17 loc) • 742 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _NotificationBar = _interopRequireDefault(require("../../components/notification/NotificationBar"));
var _notification = require("../../actions/notification");
var _reducers = require("../../reducers");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = state => ({
notifications: (0, _reducers.getNotifications)(state)
});
const mapDispatchToProps = {
close: _notification.removeNotification
};
var _default = exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_NotificationBar.default);