"use strict";

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 = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(_NotificationBar.default);

exports.default = _default;