This commit is contained in:
2024-04-12 14:51:34 +05:00
parent 3063fb65e9
commit b3d01797db
+21
View File
@@ -0,0 +1,21 @@
import { create } from "zustand";
interface IFunction {
[name: string]: (args: unknown) => unknown;
}
interface FunctionState {
functions: IFunction[];
}
const useFunctionStore = create<FunctionState>(() => ({
functions: [
{
test: () => {
return 1;
},
},
],
}));
export default useFunctionStore;