lbry-desktop/ui/component/notificationBubble/index.js

12 lines
389 B
JavaScript
Raw Normal View History

2020-08-10 22:47:39 +02:00
import { connect } from 'react-redux';
import { selectUnseenNotificationCount } from 'redux/selectors/notifications';
2020-08-11 22:32:03 +02:00
import { selectUser } from 'redux/selectors/user';
import NotificationHeaderButton from './view';
2020-08-10 22:47:39 +02: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
});
export default connect(select)(NotificationHeaderButton);