lbry-desktop/ui/component/livestreamComment/index.js
infinite-persistence 12eeb06c40 LivestreamComment: pass Comment prop instead of individual values
The number of props to pass is getting out hand, so just pass the Comment object directly.

Also, moved the "is my comment" check into LivestreamComment, so we don't need to pass it as a prop from the parent.
2021-12-30 11:55:44 -05:00

11 lines
446 B
JavaScript

import { connect } from 'react-redux';
import { selectStakedLevelForChannelUri, selectClaimForUri, selectMyClaimIdsRaw } from 'redux/selectors/claims';
import LivestreamComment from './view';
const select = (state, props) => ({
claim: selectClaimForUri(state, props.uri),
stakedLevel: selectStakedLevelForChannelUri(state, props.authorUri),
myChannelIds: selectMyClaimIdsRaw(state),
});
export default connect(select)(LivestreamComment);