mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
16 lines
350 B
JavaScript
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;
|