2019-05-06 22:35:04 -04:00
|
|
|
import { connect } from 'react-redux';
|
2022-03-09 19:05:37 +01:00
|
|
|
import {
|
|
|
|
selectThumbnailForUri,
|
|
|
|
selectClaimForUri,
|
|
|
|
selectIsUriResolving,
|
|
|
|
selectClaimsByUri,
|
|
|
|
selectOdyseeMembershipForUri,
|
|
|
|
} from 'redux/selectors/claims';
|
2021-10-17 16:36:14 +08:00
|
|
|
import { doResolveUri } from 'redux/actions/claims';
|
2022-03-09 19:05:37 +01:00
|
|
|
import { doFetchUserMemberships } from 'redux/actions/user';
|
2019-05-06 22:35:04 -04:00
|
|
|
import ChannelThumbnail from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2021-11-12 23:59:11 +08:00
|
|
|
thumbnail: selectThumbnailForUri(state, props.uri),
|
|
|
|
claim: selectClaimForUri(state, props.uri),
|
2021-11-16 12:43:28 +08:00
|
|
|
isResolving: selectIsUriResolving(state, props.uri),
|
2022-03-09 19:05:37 +01:00
|
|
|
odyseeMembership: selectOdyseeMembershipForUri(state, props.uri),
|
|
|
|
claimsByUri: selectClaimsByUri(state),
|
2019-05-06 22:35:04 -04:00
|
|
|
});
|
|
|
|
|
2020-07-23 10:22:57 -04:00
|
|
|
export default connect(select, {
|
|
|
|
doResolveUri,
|
2022-03-09 19:05:37 +01:00
|
|
|
doFetchUserMemberships,
|
2020-07-23 10:22:57 -04:00
|
|
|
})(ChannelThumbnail);
|