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

16 lines
575 B
JavaScript

import { connect } from 'react-redux';
import { selectClaimIsMineForUri } from 'redux/selectors/claims';
import { selectIsFetchingCommentsByParentId, selectRepliesForParentId } from 'redux/selectors/comments';
import CommentsReplies from './view';
const select = (state, props) => {
const { uri, parentId } = props;
return {
fetchedReplies: selectRepliesForParentId(state, parentId),
claimIsMine: selectClaimIsMineForUri(state, uri),
isFetching: selectIsFetchingCommentsByParentId(state, parentId),
};
};
export default connect(select)(CommentsReplies);