mirror of
https://github.com/langgenius/dify.git
synced 2025-07-14 12:41:35 +00:00
12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
![]() |
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 }),
|
||
|
}))
|