24 lines
686 B
24 lines
686 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { setArtistBannerOption } from 'Store/Actions/artistIndexActions';
|
|
import ArtistIndexBannerOptionsModalContent from './ArtistIndexBannerOptionsModalContent';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.artistIndex,
|
|
(artistIndex) => {
|
|
return artistIndex.bannerOptions;
|
|
}
|
|
);
|
|
}
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onChangeOption(payload) {
|
|
dispatch(setArtistBannerOption(payload));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(createMapStateToProps, createMapDispatchToProps)(ArtistIndexBannerOptionsModalContent);
|