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