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

18 lines
441 B
JavaScript
Raw Normal View History

2019-05-17 20:21:07 +02:00
import { connect } from 'react-redux';
2019-06-12 16:53:27 +02:00
import { doCommentCreate, makeSelectClaimForUri } from 'lbry-redux';
import { CommentCreate } from './view';
2019-05-17 20:21:07 +02:00
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
});
const perform = dispatch => ({
2019-06-12 16:53:27 +02:00
createComment: (comment, claimId, channel) => dispatch(doCommentCreate(comment, claimId, channel)),
2019-05-17 20:21:07 +02:00
});
export default connect(
select,
perform
)(CommentCreate);