Tasks page implementation (#120)
This commit is contained in:
19
skyvern-frontend/src/store/SettingsStore.ts
Normal file
19
skyvern-frontend/src/store/SettingsStore.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
type SettingsStore = {
|
||||
environment: string;
|
||||
organization: string;
|
||||
setEnvironment: (environment: string) => void;
|
||||
setOrganization: (organization: string) => void;
|
||||
};
|
||||
|
||||
const useSettingsStore = create<SettingsStore>((set) => {
|
||||
return {
|
||||
environment: "local",
|
||||
organization: "skyvern",
|
||||
setEnvironment: (environment: string) => set({ environment }),
|
||||
setOrganization: (organization: string) => set({ organization }),
|
||||
};
|
||||
});
|
||||
|
||||
export { useSettingsStore };
|
||||
Reference in New Issue
Block a user