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

16 lines
535 B
JavaScript

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