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

23 lines
660 B
JavaScript
Raw Normal View History

2019-05-07 04:35:04 +02:00
import { connect } from 'react-redux';
import {
selectThumbnailForUri,
selectClaimForUri,
selectIsUriResolving,
selectClaimsByUri,
} from 'redux/selectors/claims';
import { doResolveUri } from 'redux/actions/claims';
import { doFetchUserMemberships } from 'redux/actions/user';
2019-05-07 04:35:04 +02:00
import ChannelThumbnail from './view';
const select = (state, props) => ({
thumbnail: selectThumbnailForUri(state, props.uri),
claim: selectClaimForUri(state, props.uri),
isResolving: selectIsUriResolving(state, props.uri),
claimsByUri: selectClaimsByUri(state),
2019-05-07 04:35:04 +02:00
});
2020-07-23 16:22:57 +02:00
export default connect(select, {
doResolveUri,
doFetchUserMemberships,
2020-07-23 16:22:57 +02:00
})(ChannelThumbnail);