diff --git a/src/frontend/src/stores/globalVariables.ts b/src/frontend/src/stores/globalVariables.ts new file mode 100644 index 000000000..69a72f677 --- /dev/null +++ b/src/frontend/src/stores/globalVariables.ts @@ -0,0 +1,9 @@ +import { create } from "zustand"; +import { GlobalVariablesStore } from "../types/zustand/globalVariables"; + +const useGlobalVariablesStore = create((set, get) => ({ + globalVariables: [], + setGlobalVariables: (variables) => { + set({ globalVariables: variables }); + }, +})); diff --git a/src/frontend/src/types/zustand/globalVariables/index.ts b/src/frontend/src/types/zustand/globalVariables/index.ts new file mode 100644 index 000000000..51f45a85c --- /dev/null +++ b/src/frontend/src/types/zustand/globalVariables/index.ts @@ -0,0 +1,4 @@ +export type GlobalVariablesStore = { + globalVariables: Array; + setGlobalVariables: (variables: Array) => void; +};