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