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