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

17 lines
575 B
JavaScript
Raw Normal View History

2020-08-24 19:35:21 +02:00
import { connect } from 'react-redux';
import { selectClaimIsMineForUri } from 'redux/selectors/claims';
2021-10-11 08:02:17 +02:00
import { selectIsFetchingCommentsByParentId, selectRepliesForParentId } from 'redux/selectors/comments';
2020-08-25 21:54:06 +02:00
import CommentsReplies from './view';
2020-08-24 19:35:21 +02:00
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);