'use strict';

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

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

var _NotificationBar = require('../../components/notification/NotificationBar');

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

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