mastodon/app/javascript/themes/glitch/features/notifications/containers/overlay_container.js

19 lines
527 B
JavaScript
Raw Normal View History

2017-11-18 03:11:18 +00:00
// 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);