summaryrefslogtreecommitdiff
path: root/fig-frontend/client/src/state.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fig-frontend/client/src/state.ts')
-rw-r--r--fig-frontend/client/src/state.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/fig-frontend/client/src/state.ts b/fig-frontend/client/src/state.ts
new file mode 100644
index 0000000..19bc5d9
--- /dev/null
+++ b/fig-frontend/client/src/state.ts
@@ -0,0 +1,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();