You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
706 B
24 lines
706 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { setArtistOverviewOption } from 'Store/Actions/artistIndexActions';
|
|
import ArtistIndexOverviewOptionsModalContent from './ArtistIndexOverviewOptionsModalContent';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.artistIndex,
|
|
(artistIndex) => {
|
|
return artistIndex.overviewOptions;
|
|
}
|
|
);
|
|
}
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onChangeOverviewOption(payload) {
|
|
dispatch(setArtistOverviewOption(payload));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(createMapStateToProps, createMapDispatchToProps)(ArtistIndexOverviewOptionsModalContent);
|