fb3a73d8a7
Enter: Odysee Premium.
27 lines
774 B
JavaScript
27 lines
774 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
selectStakedLevelForChannelUri,
|
|
selectClaimForUri,
|
|
selectMyClaimIdsRaw,
|
|
selectClaimsByUri,
|
|
selectOdyseeMembershipForChannelId,
|
|
} from 'redux/selectors/claims';
|
|
|
|
import LivestreamComment from './view';
|
|
|
|
const select = (state, props) => {
|
|
const { uri, comment } = props;
|
|
const { channel_url: authorUri, channel_id: channelId } = comment;
|
|
|
|
return {
|
|
claim: selectClaimForUri(state, uri),
|
|
stakedLevel: selectStakedLevelForChannelUri(state, authorUri),
|
|
myChannelIds: selectMyClaimIdsRaw(state),
|
|
claimsByUri: selectClaimsByUri(state),
|
|
odyseeMembership: selectOdyseeMembershipForChannelId(state, channelId),
|
|
};
|
|
};
|
|
|
|
const perform = {};
|
|
|
|
export default connect(select, perform)(LivestreamComment);
|