mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-11 05:33:15 +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 }),
|
||
|
}))
|