var actions = require('../actions'); module.exports = function(currentTheme, action) { switch(action.type) { case actions.edit.USE_ICON_THEME: return action.theme; default: return currentTheme || null; } };