diff --git a/src/stores/useFunctionStore.ts b/src/stores/useFunctionStore.ts new file mode 100644 index 0000000..63c161d --- /dev/null +++ b/src/stores/useFunctionStore.ts @@ -0,0 +1,21 @@ +import { create } from "zustand"; + +interface IFunction { + [name: string]: (args: unknown) => unknown; +} + +interface FunctionState { + functions: IFunction[]; +} + +const useFunctionStore = create(() => ({ + functions: [ + { + test: () => { + return 1; + }, + }, + ], +})); + +export default useFunctionStore;