From 094d3e0e1370f2f8b3619ba6cea8b33ac83dceed Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 12 Jan 2024 14:54:22 -0500 Subject: Update frontend --- fig-frontend/client/src/state.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fig-frontend/client/src/state.ts (limited to 'fig-frontend/client/src/state.ts') 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(); -- cgit v1.2.3