2019-05-07 04:35:04 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-11-12 16:59:11 +01:00
|
|
|
import { selectThumbnailForUri, selectClaimForUri, makeSelectIsUriResolving } from 'redux/selectors/claims';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { doResolveUri } from 'redux/actions/claims';
|
2019-05-07 04:35:04 +02:00
|
|
|
import ChannelThumbnail from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2021-11-12 16:59:11 +01:00
|
|
|
thumbnail: selectThumbnailForUri(state, props.uri),
|
|
|
|
claim: selectClaimForUri(state, props.uri),
|
2020-08-24 20:44:41 +02:00
|
|
|
isResolving: makeSelectIsUriResolving(props.uri)(state),
|
2019-05-07 04:35:04 +02:00
|
|
|
});
|
|
|
|
|
2020-07-23 16:22:57 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doResolveUri,
|
|
|
|
})(ChannelThumbnail);
|