lbry-desktop/ui/component/notification/index.js
2022-04-27 16:09:01 -04:00

10 lines
468 B
JavaScript

import { connect } from 'react-redux';
import { doLbryioNotificationsMarkRead, doLbryioDeleteNotification } from 'redux/actions/notifications';
import Notification from './view';
const perform = (dispatch, ownProps) => ({
readNotification: () => dispatch(doLbryioNotificationsMarkRead([ownProps.notification.id])),
deleteNotification: () => dispatch(doLbryioDeleteNotification(ownProps.notification.id)),
});
export default connect(null, perform)(Notification);