2017-11-18 03:11:18 +00:00
|
|
|
// Package imports.
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
|
|
|
|
// Our imports.
|
2017-12-04 07:26:40 +00:00
|
|
|
import { markNotificationForDelete } from 'flavours/glitch/actions/notifications';
|
2017-11-18 03:11:18 +00:00
|
|
|
|
2023-05-28 14:38:10 +00:00
|
|
|
import NotificationOverlay from '../components/overlay';
|
|
|
|
|
2017-11-18 03:11:18 +00:00
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onMarkForDelete(id, yes) {
|
|
|
|
dispatch(markNotificationForDelete(id, yes));
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
show: state.getIn(['notifications', 'cleaningMode']),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);
|