import * as UserActions from '../actions/user-actions' ; export default ( state = { } , action = { } ) => { switch ( action . type ) { case UserActions . REQUEST_USERS : return Object . assign ( { } , state , { isFetching : true } ) ; case UserActions . RECEIVE_USERS : return Object . assign ( { } , state , { isFetching : false , list : action . users , updated : action . updated } ) ; case UserActions . CURRENT_USER : return Object . assign ( { } , state , { current : action . current } ) ; case UserActions . SET_FILM_FILTER : return Object . assign ( { } , state , { filmFilter : action . filmFilter } ) ; default : return state ; } } ;