mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-14 20:41:21 +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 }),
|
|
}))
|