mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-05 04:38:37 +08:00
9d221a5e19
Co-authored-by: Yi <yxiaoisme@gmail.com>
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 }),
|
|
}))
|