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

17 lines
577 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';
2022-03-03 15:20:09 +01:00
import { selectIsFetchingCommentsForParentId, 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),
2022-03-03 15:20:09 +01:00
isFetching: selectIsFetchingCommentsForParentId(state, parentId),
};
};
export default connect(select)(CommentsReplies);