2020-08-10 22:47:39 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-03-16 02:42:49 +01:00
|
|
|
import { selectUnseenNotificationCount } from 'redux/selectors/notifications';
|
2020-08-11 22:32:03 +02:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
2021-07-06 03:29:46 +02:00
|
|
|
import NotificationHeaderButton from './view';
|
2020-08-10 22:47:39 +02:00
|
|
|
|
2021-03-16 02:42:49 +01:00
|
|
|
const select = (state) => ({
|
|
|
|
unseenCount: selectUnseenNotificationCount(state),
|
2020-08-11 22:32:03 +02:00
|
|
|
user: selectUser(state),
|
2020-08-10 22:47:39 +02:00
|
|
|
});
|
|
|
|
|
2021-07-06 03:29:46 +02:00
|
|
|
export default connect(select)(NotificationHeaderButton);
|