'use strict' const {RECEIVE_NETWORK} = require('./action_constants') module.exports = (state = {}, action) => { switch (action.type) { case RECEIVE_NETWORK: return Object.assign({}, state, { network: action.network }) default: return state } }