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.
25 lines
681 B
25 lines
681 B
6 years ago
|
import { connect } from 'react-redux';
|
||
|
import { createSelector } from 'reselect';
|
||
|
import FilterModal from 'Components/Filter/FilterModal';
|
||
4 years ago
|
import { setMovieFilter } from 'Store/Actions/indexerIndexActions';
|
||
6 years ago
|
|
||
|
function createMapStateToProps() {
|
||
|
return createSelector(
|
||
3 years ago
|
(state) => state.indexers.items,
|
||
4 years ago
|
(state) => state.indexerIndex.filterBuilderProps,
|
||
6 years ago
|
(sectionItems, filterBuilderProps) => {
|
||
|
return {
|
||
|
sectionItems,
|
||
|
filterBuilderProps,
|
||
4 years ago
|
customFilterType: 'indexerIndex'
|
||
6 years ago
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
const mapDispatchToProps = {
|
||
|
dispatchSetFilter: setMovieFilter
|
||
|
};
|
||
|
|
||
|
export default connect(createMapStateToProps, mapDispatchToProps)(FilterModal);
|