2022-05-31 11:19:21 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doSetAdBlockerFound } from 'redux/actions/app';
|
|
|
|
import { selectAdBlockerFound } from 'redux/selectors/app';
|
2022-06-01 15:47:14 +02:00
|
|
|
import { selectHomepageData } from 'redux/selectors/settings';
|
2022-05-31 11:19:21 +02:00
|
|
|
import { selectOdyseeMembershipIsPremiumPlus, selectUserCountry } from 'redux/selectors/user';
|
|
|
|
import AdsSticky from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
isAdBlockerFound: selectAdBlockerFound(state),
|
|
|
|
userHasPremiumPlus: selectOdyseeMembershipIsPremiumPlus(state),
|
|
|
|
userCountry: selectUserCountry(state),
|
2022-06-01 15:47:14 +02:00
|
|
|
homepageData: selectHomepageData(state),
|
2022-05-31 11:19:21 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doSetAdBlockerFound,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, perform)(AdsSticky);
|