import { SHARE } from '../actions/actionsTypes';
const initialState = {
user: {},
server: {},
settings: {}
};
export default function share(state = initialState, action) {
switch (action.type) {
case SHARE.SELECT_SERVER:
return {
...state,
server: action.server
case SHARE.SET_USER:
user: action.user
case SHARE.SET_SETTINGS:
settings: action.settings
default:
return state;
}