mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectCommentsForUri, doCommentList } from 'lbry-redux';
|
|
import CommentsList from './view';
|
|
|
|
const select = (state, props) => ({
|
|
comments: makeSelectCommentsForUri(props.uri)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchComments: uri => dispatch(doCommentList(uri)),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(CommentsList);
|