2020-08-10 22:47:39 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectUnreadNotificationCount } from 'redux/selectors/notifications';
|
2020-08-11 22:32:03 +02:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
|
|
|
import NotificationBubble from './view';
|
2020-08-10 22:47:39 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
unreadCount: selectUnreadNotificationCount(state),
|
2020-08-11 22:32:03 +02:00
|
|
|
user: selectUser(state),
|
2020-08-10 22:47:39 +02:00
|
|
|
});
|
|
|
|
|
2020-08-11 22:32:03 +02:00
|
|
|
export default connect(select)(NotificationBubble);
|