mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-05 12:48:32 +08:00
12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
|
import { create } from 'zustand'
|
||
|
|
||
|
type DatasetStore = {
|
||
|
showExternalApiPanel: boolean
|
||
|
setShowExternalApiPanel: (show: boolean) => void
|
||
|
}
|
||
|
|
||
|
export const useDatasetStore = create<DatasetStore>(set => ({
|
||
|
showExternalApiPanel: false,
|
||
|
setShowExternalApiPanel: show => set({ showExternalApiPanel: show }),
|
||
|
}))
|