2020-04-29 22:50:06 +02:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { makeSelectThumbnailForUri, doResolveUri, makeSelectClaimForUri } from 'lbry-redux';
|
2020-05-25 19:20:45 +02:00
|
|
|
import { doFetchCostInfoForUri, makeSelectCostInfoForUri } from 'lbryinc';
|
2020-04-30 20:25:51 +02:00
|
|
|
import { doSetFloatingUri, doPlayUri } from 'redux/actions/content';
|
2020-05-21 18:53:21 +02:00
|
|
|
import { doAnaltyicsPurchaseEvent } from 'redux/actions/app';
|
2020-04-29 22:50:06 +02:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import ChannelThumbnail from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
thumbnail: makeSelectThumbnailForUri(props.uri)(state),
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
|
|
floatingPlayerEnabled: makeSelectClientSetting(SETTINGS.FLOATING_PLAYER)(state),
|
2020-05-25 19:20:45 +02:00
|
|
|
costInfo: makeSelectCostInfoForUri(props.uri)(state),
|
2020-04-29 22:50:06 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doResolveUri,
|
|
|
|
doFetchCostInfoForUri,
|
|
|
|
doSetFloatingUri,
|
2020-04-30 20:25:51 +02:00
|
|
|
doPlayUri,
|
2020-05-21 18:53:21 +02:00
|
|
|
doAnaltyicsPurchaseEvent,
|
2020-04-29 22:50:06 +02:00
|
|
|
})(ChannelThumbnail);
|