21 lines
750 B
JavaScript
21 lines
750 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import * as SETTINGS from 'constants/settings';
|
||
|
import { doSetAdBlockerFound } from 'redux/actions/app';
|
||
|
import { selectAdBlockerFound } from 'redux/selectors/app';
|
||
|
import { selectClientSetting } from 'redux/selectors/settings';
|
||
|
import { selectOdyseeMembershipIsPremiumPlus, selectUserCountry } from 'redux/selectors/user';
|
||
|
import AdsSticky from './view';
|
||
|
|
||
|
const select = (state, props) => ({
|
||
|
isAdBlockerFound: selectAdBlockerFound(state),
|
||
|
userHasPremiumPlus: selectOdyseeMembershipIsPremiumPlus(state),
|
||
|
userCountry: selectUserCountry(state),
|
||
|
currentTheme: selectClientSetting(state, SETTINGS.THEME),
|
||
|
});
|
||
|
|
||
|
const perform = {
|
||
|
doSetAdBlockerFound,
|
||
|
};
|
||
|
|
||
|
export default connect(select, perform)(AdsSticky);
|