export const SET_ACCOUNT = 'SET_ACCOUNT';
export const setAccount = value => ({ type: SET_ACCOUNT, value });

export const SET_CRYPS = 'SET_CRYPS';
export const setCryps = value => ({ type: SET_CRYPS, value });

export const SET_ITEMS = 'SET_ITEMS';
export const setItems = value => ({ type: SET_ITEMS, value });

export const SET_GAME = 'SET_GAME';
export const setGame = value => ({ type: SET_GAME, value });

export const SET_ACTIVE_ITEM = 'SET_ACTIVE_ITEM';
export const setActiveItem = value => ({ type: SET_ACTIVE_ITEM, value });

export const SET_ACTIVE_INCOMING = 'SET_ACTIVE_INCOMING';
export const setActiveIncoming = value => ({ type: SET_ACTIVE_INCOMING, value });

export const SET_ACTIVE_SKILL = 'SET_ACTIVE_SKILL';
export const setActiveSkill = (crypId, skill) => ({ type: SET_ACTIVE_SKILL, value: crypId ? { crypId, skill } : null });

export const SET_WS = 'SET_WS';
export const setWs = value => ({ type: SET_WS, value });
