import { ADD_FILTER , REMOVE_FILTER , RESET_FILTER , REPLACE_FILTER } from '../constants/filters' ; export const add = ( key , payload ) => ( { payload , key , type : ADD_FILTER } ) ; export const remove = ( key , payload ) => ( { payload , key , type : REMOVE_FILTER } ) ; export const reset = ( key ) => ( { key , type : RESET_FILTER } ) ; export const resetAll = ( ) => ( { type : RESET_FILTER } ) ; export const replace = ( key , payload ) => ( { key , type : REPLACE_FILTER , payload } ) ;