lbry-desktop/ui/component/headerNotificationButton/index.js
2022-04-27 16:09:01 -04:00

14 lines
500 B
JavaScript

import { connect } from 'react-redux';
import { selectUnseenNotificationCount } from 'redux/selectors/notifications';
import { doLbryioSeeAllNotifications } from 'redux/actions/notifications';
import { selectUser } from 'redux/selectors/user';
import NotificationHeaderButton from './view';
const select = (state) => ({
unseenCount: selectUnseenNotificationCount(state),
user: selectUser(state),
});
export default connect(select, {
doLbryioSeeAllNotifications,
})(NotificationHeaderButton);