2019-05-06 22:35:04 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-07 23:47:39 -04:00
|
|
|
import { makeSelectThumbnailForUri, makeSelectClaimForUri, makeSelectIsUriResolving } 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: makeSelectThumbnailForUri(props.uri)(state),
|
2020-07-23 10:22:57 -04:00
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2020-08-24 14:44:41 -04:00
|
|
|
isResolving: makeSelectIsUriResolving(props.uri)(state),
|
2019-05-06 22:35:04 -04:00
|
|
|
});
|
|
|
|
|
2020-07-23 10:22:57 -04:00
|
|
|
export default connect(select, {
|
|
|
|
doResolveUri,
|
|
|
|
})(ChannelThumbnail);
|