import { RECEIVE_USERS } from '../actions/users';

// Reducer function for users...
export default function users (state = {}, action) {
    switch(action.type) {
        case RECEIVE_USERS:
            return {
                ...state,
                ...action.users
            }
        default:
            return state;
    }
}