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
668 B
24 lines
668 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { deleteCustomFilter } from 'Store/Actions/customFilterActions';
|
|
import CustomFiltersModalContent from './CustomFiltersModalContent';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.customFilters.isDeleting,
|
|
(state) => state.customFilters.deleteError,
|
|
(isDeleting, deleteError) => {
|
|
return {
|
|
isDeleting,
|
|
deleteError
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
const mapDispatchToProps = {
|
|
dispatchDeleteCustomFilter: deleteCustomFilter
|
|
};
|
|
|
|
export default connect(createMapStateToProps, mapDispatchToProps)(CustomFiltersModalContent);
|