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';
|
2022-06-10 06:48:28 +02:00
|
|
|
import NotificationButton 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
|
|
|
});
|
|
|
|
|
2022-06-10 06:48:28 +02:00
|
|
|
export default connect(select)(NotificationButton);
|