lbry-desktop/ui/component/notification/index.js

11 lines
436 B
JavaScript
Raw Normal View History

2020-07-23 16:22:57 +02:00
import { connect } from 'react-redux';
2020-12-14 19:52:17 +01:00
import { doReadNotifications, doDeleteNotification } from 'redux/actions/notifications';
2020-07-23 16:22:57 +02:00
import Notification from './view';
const perform = (dispatch, ownProps) => ({
readNotification: () => dispatch(doReadNotifications([ownProps.notification.id])),
deleteNotification: () => dispatch(doDeleteNotification(ownProps.notification.id)),
});
export default connect(null, perform)(Notification);