lbry-desktop/ui/component/commentCreate/index.js
2019-11-11 13:27:29 -05:00

17 lines
441 B
JavaScript

import { connect } from 'react-redux';
import { doCommentCreate, makeSelectClaimForUri } from 'lbry-redux';
import { CommentCreate } from './view';
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
});
const perform = dispatch => ({
createComment: (comment, claimId, channel) => dispatch(doCommentCreate(comment, claimId, channel)),
});
export default connect(
select,
perform
)(CommentCreate);