lbry-desktop/src/ui/component/commentsList/index.js

17 lines
461 B
JavaScript
Raw Normal View History

2019-05-17 20:21:07 +02:00
import { connect } from 'react-redux';
import { makeSelectCommentsForUri, makeSelectClaimForUri, doCommentList } from 'lbry-redux';
import CommentsList from './view';
const select = (state, props) => ({
comments: makeSelectCommentsForUri(props.uri)(state),
claim: makeSelectClaimForUri(props.uri)(state),
});
const perform = dispatch => ({
fetchList: uri => dispatch(doCommentList(uri)),
});
export default connect(
select,
perform
)(CommentsList);