lbry-desktop/ui/component/notification/index.js
2021-08-03 11:17:19 -03:00

19 lines
612 B
JavaScript

import { connect } from 'react-redux';
import { doReadNotifications, doDeleteNotification } from 'redux/actions/notifications';
import { doCommentReactList } from 'redux/actions/comments';
import Notification from './view';
import { selectFetchingMyChannels } from 'lbry-redux';
import {
selectIsFetchingReacts,
} from 'redux/selectors/comments';
const select = (state) => ({
fetchingChannels: selectFetchingMyChannels(state),
isFetchingReacts: selectIsFetchingReacts(state),
});
export default connect(select, {
doReadNotifications,
doDeleteNotification,
doCommentReactList,
})(Notification);