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

15 lines
504 B
JavaScript
Raw Normal View History

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