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

17 lines
393 B
JavaScript
Raw Normal View History

2019-05-17 14:21:07 -04:00
import { connect } from 'react-redux';
2019-06-26 19:59:27 -04:00
import { makeSelectCommentsForUri, doCommentList } from 'lbry-redux';
2019-05-17 14:21:07 -04:00
import CommentsList from './view';
const select = (state, props) => ({
comments: makeSelectCommentsForUri(props.uri)(state),
});
const perform = dispatch => ({
2019-06-26 19:59:27 -04:00
fetchComments: uri => dispatch(doCommentList(uri)),
2019-05-17 14:21:07 -04:00
});
2019-06-26 19:59:27 -04:00
2019-05-17 14:21:07 -04:00
export default connect(
select,
perform
)(CommentsList);