mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
19 lines
527 B
JavaScript
19 lines
527 B
JavaScript
|
// 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);
|