2021-04-23 21:59:48 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-12-30 04:40:51 +01:00
|
|
|
import { selectStakedLevelForChannelUri, selectClaimForUri, selectMyClaimIdsRaw } from 'redux/selectors/claims';
|
2021-04-23 21:59:48 +02:00
|
|
|
import LivestreamComment from './view';
|
|
|
|
|
2021-12-31 12:45:16 +01:00
|
|
|
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),
|
|
|
|
};
|
|
|
|
};
|
2021-04-23 21:59:48 +02:00
|
|
|
|
|
|
|
export default connect(select)(LivestreamComment);
|