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