mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
feat: dsl check plugin
This commit is contained in:
11
web/app/components/workflow/plugin-dependency/store.ts
Normal file
11
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