webamp/js/reducers/settings.js
2018-04-02 16:50:00 -07:00

16 lines
350 B
JavaScript

import { SET_AVAILABLE_SKINS } from "../actionTypes";
const defaultSettingsState = {
availableSkins: []
};
const settings = (state = defaultSettingsState, action) => {
switch (action.type) {
case SET_AVAILABLE_SKINS:
return { ...state, availableSkins: action.skins };
default:
return state;
}
};
export default settings;