record panel

This commit is contained in:
StyleZhang
2024-02-29 17:26:49 +08:00
parent 6d5618447e
commit 1840d05a37
11 changed files with 159 additions and 132 deletions

View File

@ -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 })),
}))