mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-29 01:28:22 +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 }),
|
|
}))
|