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';
|
|
|
|
|
2021-11-05 20:31:51 +01:00
|
|
|
const perform = (dispatch, ownProps) => ({
|
|
|
|
readNotification: () => dispatch(doReadNotifications([ownProps.notification.id])),
|
|
|
|
deleteNotification: () => dispatch(doDeleteNotification(ownProps.notification.id)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(null, perform)(Notification);
|