2022-04-14 16:12:53 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import * as SETTINGS from 'constants/settings';
|
|
|
|
import { doSetAdBlockerFound } from 'redux/actions/app';
|
2022-05-30 12:50:15 +02:00
|
|
|
import { selectAdBlockerFound } from 'redux/selectors/app';
|
2022-04-14 16:12:53 +02:00
|
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import { selectOdyseeMembershipIsPremiumPlus, selectUserCountry } from 'redux/selectors/user';
|
|
|
|
import AdsBanner from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2022-05-30 12:50:15 +02:00
|
|
|
isAdBlockerFound: selectAdBlockerFound(state),
|
2022-04-14 16:12:53 +02:00
|
|
|
userHasPremiumPlus: selectOdyseeMembershipIsPremiumPlus(state),
|
|
|
|
userCountry: selectUserCountry(state),
|
|
|
|
currentTheme: selectClientSetting(state, SETTINGS.THEME),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doSetAdBlockerFound,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select, perform)(AdsBanner);
|