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