lbry-desktop/ui/page/notifications/index.js
2020-08-21 16:04:27 -04:00

23 lines
720 B
JavaScript

import { connect } from 'react-redux';
import {
selectNotifications,
selectIsFetchingNotifications,
selectUnreadNotificationCount,
selectUnseenNotificationCount,
} from 'redux/selectors/notifications';
import { doReadNotifications, doNotificationList, doSeeAllNotifications } from 'redux/actions/notifications';
import NotificationsPage from './view';
const select = state => ({
notifications: selectNotifications(state),
fetching: selectIsFetchingNotifications(state),
unreadCount: selectUnreadNotificationCount(state),
unseenCount: selectUnseenNotificationCount(state),
});
export default connect(select, {
doReadNotifications,
doNotificationList,
doSeeAllNotifications,
})(NotificationsPage);