summaryrefslogtreecommitdiff
path: root/fig-frontend/client/src/state.ts
blob: 19bc5d9f8ff056cc5234684007be6666f18bd42f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { observable, action } from 'mobx';

class Global {
  @observable
  public gizmo_active: boolean = true;

  @action
  public toggle_gizmo() {
    this.gizmo_active = !this.gizmo_active;
  }
}

export const global = new Global();