mirror of
https://github.com/langgenius/dify.git
synced 2026-02-23 19:37:59 +08:00
features
This commit is contained in:
@ -4,14 +4,12 @@ type State = {
|
||||
mode: string
|
||||
showRunHistory: boolean
|
||||
showFeaturesPanel: boolean
|
||||
showFeaturesModal: boolean
|
||||
runStaus: string
|
||||
}
|
||||
|
||||
type Action = {
|
||||
setShowRunHistory: (showRunHistory: boolean) => void
|
||||
setShowFeaturesPanel: (showFeaturesPanel: boolean) => void
|
||||
setShowFeaturesModal: (showFeaturesModal: boolean) => void
|
||||
setRunStaus: (runStaus: string) => void
|
||||
}
|
||||
|
||||
@ -21,8 +19,6 @@ export const useStore = create<State & Action>(set => ({
|
||||
setShowRunHistory: showRunHistory => set(() => ({ showRunHistory })),
|
||||
showFeaturesPanel: false,
|
||||
setShowFeaturesPanel: showFeaturesPanel => set(() => ({ showFeaturesPanel })),
|
||||
showFeaturesModal: false,
|
||||
setShowFeaturesModal: showFeaturesModal => set(() => ({ showFeaturesModal })),
|
||||
runStaus: '',
|
||||
setRunStaus: runStaus => set(() => ({ runStaus })),
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user