lbry-desktop/ui/component/commentsReplies/index.js
2022-03-03 11:39:42 -05:00

16 lines
577 B
JavaScript

import { connect } from 'react-redux';
import { selectClaimIsMineForUri } from 'redux/selectors/claims';
import { selectIsFetchingCommentsForParentId, 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: selectIsFetchingCommentsForParentId(state, parentId),
};
};
export default connect(select)(CommentsReplies);