export default (state = { name: 'Powelly', id: 1, admin: false }, action) => { switch(action.type) { case 'SET_ADMIN': return { ...state, admin: action.admin }; default: return state; } }