mirror of
https://github.com/langgenius/dify.git
synced 2025-07-29 04:20:17 +00: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 }),
|
|
}))
|