mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-01 09:01:27 +00:00
19 lines
529 B
JavaScript
19 lines
529 B
JavaScript
// Package imports.
|
|
import { connect } from 'react-redux';
|
|
|
|
// Our imports.
|
|
import NotificationOverlay from '../components/overlay';
|
|
import { markNotificationForDelete } from 'flavours/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);
|