5b16b3b058
Ticket: 1145 - Limited to premium for now (early access). - Needed to handle custom categories from non-English homepages.
21 lines
653 B
JavaScript
21 lines
653 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doFetchPersonalRecommendations } from 'redux/actions/search';
|
|
import { selectPersonalRecommendations } from 'redux/selectors/search';
|
|
import { selectHasOdyseeMembership, selectUser } from 'redux/selectors/user';
|
|
|
|
import RecommendedPersonal from './view';
|
|
|
|
const select = (state) => {
|
|
const user = selectUser(state);
|
|
return {
|
|
userId: user && user.id,
|
|
personalRecommendations: selectPersonalRecommendations(state),
|
|
hasMembership: selectHasOdyseeMembership(state),
|
|
};
|
|
};
|
|
|
|
const perform = {
|
|
doFetchPersonalRecommendations,
|
|
};
|
|
|
|
export default connect(select, perform)(RecommendedPersonal);
|