about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/features/notifications/containers/overlay_container.js
blob: 52649cdd755f9148c062aac4630079578114524a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//  Package imports.
import { connect } from 'react-redux';

//  Our imports.
import NotificationOverlay from '../components/overlay';
import { markNotificationForDelete } from 'themes/glitch/actions/notifications';

const mapDispatchToProps = dispatch => ({
  onMarkForDelete(id, yes) {
    dispatch(markNotificationForDelete(id, yes));
  },
});

const mapStateToProps = state => ({
  show: state.getIn(['notifications', 'cleaningMode']),
});

export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);