lbry-desktop/ui/page/notifications/index.js
2020-07-23 11:03:00 -04:00

16 lines
449 B
JavaScript

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