2020-07-23 10:22:57 -04:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-26 21:14:36 -05:00
|
|
|
import { selectUnseenNotificationCount } from 'redux/selectors/notifications';
|
2020-12-14 13:52:17 -05:00
|
|
|
import { doSeeAllNotifications } from 'redux/actions/notifications';
|
2020-07-23 10:22:57 -04:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
|
|
|
import NotificationHeaderButton from './view';
|
|
|
|
|
2022-01-26 21:14:36 -05:00
|
|
|
const select = (state) => ({
|
2020-12-14 13:52:17 -05:00
|
|
|
unseenCount: selectUnseenNotificationCount(state),
|
2020-07-23 10:22:57 -04:00
|
|
|
user: selectUser(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
2020-12-14 13:52:17 -05:00
|
|
|
doSeeAllNotifications,
|
2020-07-23 10:22:57 -04:00
|
|
|
})(NotificationHeaderButton);
|