blob: c916480c0fb7e3445b8ae983a1c3907aae931fd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { observable } from 'mobx';
const defaultState = {
activeWorkspace: null,
nextWorkspace: null,
isLoadingWorkspaces: false,
isFeatureActive: false,
isSwitchingWorkspace: false,
isWorkspaceDrawerOpen: false,
workspaces: [],
workspaceBeingEdited: null,
};
export const workspacesState = observable(defaultState);
export function resetState() {
Object.assign(workspacesState, defaultState);
}
|