a7e6f3df20
Port 7b5a274836
to glitch-soc
19 lines
530 B
JavaScript
19 lines
530 B
JavaScript
// Package imports.
|
|
import { connect } from 'react-redux';
|
|
|
|
// Our imports.
|
|
import { markNotificationForDelete } from 'flavours/glitch/actions/notifications';
|
|
|
|
import NotificationOverlay from '../components/overlay';
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
onMarkForDelete(id, yes) {
|
|
dispatch(markNotificationForDelete(id, yes));
|
|
},
|
|
});
|
|
|
|
const mapStateToProps = state => ({
|
|
show: state.getIn(['notifications', 'cleaningMode']),
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(NotificationOverlay);
|