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

17 lines
657 B
JavaScript
Raw Normal View History

2020-07-23 10:22:57 -04:00
import { connect } from 'react-redux';
2022-04-29 17:12:48 -04:00
import { selectUnseenNotificationCount, selectUnseenLocalNotificationCount } from 'redux/selectors/notifications';
import { doLbryioSeeAllNotifications, doLocalSeeAllNotifications } from 'redux/actions/notifications';
2020-07-23 10:22:57 -04:00
import { selectUser } from 'redux/selectors/user';
import NotificationHeaderButton from './view';
const select = (state) => ({
2020-12-14 13:52:17 -05:00
unseenCount: selectUnseenNotificationCount(state),
2022-04-29 17:12:48 -04:00
unseenLocalCount: selectUnseenLocalNotificationCount(state),
2020-07-23 10:22:57 -04:00
user: selectUser(state),
});
export default connect(select, {
2022-04-27 16:09:01 -04:00
doLbryioSeeAllNotifications,
2022-04-29 17:12:48 -04:00
doLocalSeeAllNotifications,
2020-07-23 10:22:57 -04:00
})(NotificationHeaderButton);