mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
record panel
This commit is contained in:
@ -4,11 +4,13 @@ type State = {
|
||||
mode: string
|
||||
showRunHistory: boolean
|
||||
showFeatures: boolean
|
||||
runStaus: string
|
||||
}
|
||||
|
||||
type Action = {
|
||||
setShowRunHistory: (showRunHistory: boolean) => void
|
||||
setShowFeatures: (showFeatures: boolean) => void
|
||||
setRunStaus: (runStaus: string) => void
|
||||
}
|
||||
|
||||
export const useStore = create<State & Action>(set => ({
|
||||
@ -17,4 +19,6 @@ export const useStore = create<State & Action>(set => ({
|
||||
setShowRunHistory: showRunHistory => set(() => ({ showRunHistory })),
|
||||
showFeatures: false,
|
||||
setShowFeatures: showFeatures => set(() => ({ showFeatures })),
|
||||
runStaus: 'finished',
|
||||
setRunStaus: runStaus => set(() => ({ runStaus })),
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user