d97a23b699
I believe it was just due to copy/pasting from another file and not renaming it.
22 lines
1 KiB
JavaScript
22 lines
1 KiB
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectClaimIsNsfw, makeSelectClaimForUri } from 'lbry-redux';
|
|
import { doFetchRecommendedContent } from 'redux/actions/search';
|
|
import { makeSelectRecommendedContentForUri, selectIsSearching } from 'redux/selectors/search';
|
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
|
import { makeSelectNextUnplayedRecommended } from 'redux/selectors/content';
|
|
import RecommendedContent from './view';
|
|
|
|
const select = (state, props) => ({
|
|
mature: makeSelectClaimIsNsfw(props.uri)(state),
|
|
recommendedContent: makeSelectRecommendedContentForUri(props.uri)(state),
|
|
nextRecommendedUri: makeSelectNextUnplayedRecommended(props.uri)(state),
|
|
isSearching: selectIsSearching(state),
|
|
isAuthenticated: selectUserVerifiedEmail(state),
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
});
|
|
|
|
const perform = (dispatch) => ({
|
|
doFetchRecommendedContent: (uri, mature) => dispatch(doFetchRecommendedContent(uri, mature)),
|
|
});
|
|
|
|
export default connect(select, perform)(RecommendedContent);
|