summaryrefslogtreecommitdiff
path: root/fig-frontend/client/src/state.ts
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-01-12 14:54:22 -0500
committerLLLL Colonq <llll@colonq>2024-01-12 14:54:32 -0500
commit094d3e0e1370f2f8b3619ba6cea8b33ac83dceed (patch)
tree01ae4f2706d32ef1433c60d60dcabb1e479be463 /fig-frontend/client/src/state.ts
parent45980c6910a7fe16ec41b1663b79cebc6e33350d (diff)
Update frontend
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();