mirror of https://github.com/lidarr/Lidarr
24 lines
692 B
JavaScript
24 lines
692 B
JavaScript
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { setArtistPosterOption } from 'Store/Actions/artistIndexActions';
|
|
import ArtistIndexPosterOptionsModalContent from './ArtistIndexPosterOptionsModalContent';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.artistIndex,
|
|
(artistIndex) => {
|
|
return artistIndex.posterOptions;
|
|
}
|
|
);
|
|
}
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onChangePosterOption(payload) {
|
|
dispatch(setArtistPosterOption(payload));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(createMapStateToProps, createMapDispatchToProps)(ArtistIndexPosterOptionsModalContent);
|