dify
This commit is contained in:
11
dify/web/app/components/workflow/plugin-dependency/store.ts
Normal file
11
dify/web/app/components/workflow/plugin-dependency/store.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { create } from 'zustand'
|
||||
import type { Dependency } from '@/app/components/plugins/types'
|
||||
|
||||
type Shape = {
|
||||
dependencies: Dependency[]
|
||||
setDependencies: (dependencies: Dependency[]) => void
|
||||
}
|
||||
export const useStore = create<Shape>(set => ({
|
||||
dependencies: [],
|
||||
setDependencies: dependencies => set({ dependencies }),
|
||||
}))
|
||||
Reference in New Issue
Block a user