20 lines
652 B
JavaScript
20 lines
652 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import ModalCustomizeHomepage from './view';
|
||
|
import * as SETTINGS from 'constants/settings';
|
||
|
import { doHideModal } from 'redux/actions/app';
|
||
|
import { doSetClientSetting } from 'redux/actions/settings';
|
||
|
import { selectClientSetting } from 'redux/selectors/settings';
|
||
|
import { selectHasOdyseeMembership } from 'redux/selectors/user';
|
||
|
|
||
|
const select = (state) => ({
|
||
|
hasMembership: selectHasOdyseeMembership(state),
|
||
|
homepageOrder: selectClientSetting(state, SETTINGS.HOMEPAGE_ORDER),
|
||
|
});
|
||
|
|
||
|
const perform = {
|
||
|
doSetClientSetting,
|
||
|
doHideModal,
|
||
|
};
|
||
|
|
||
|
export default connect(select, perform)(ModalCustomizeHomepage);
|