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

11 lines
436 B
JavaScript
Raw Normal View History

2020-07-23 10:22:57 -04:00
import { connect } from 'react-redux';
2020-12-14 13:52:17 -05:00
import { doReadNotifications, doDeleteNotification } from 'redux/actions/notifications';
2020-07-23 10:22:57 -04: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);