masto-fe/app/javascript/flavours/glitch/features/notifications/containers/overlay_container.js
2017-12-03 23:26:40 -08:00

18 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);