Download web/app/(commonLayout)/datasets/store.ts from ZHZ1024/dify: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/app/(commonLayout)/datasets/store.ts
- Command line
-
hf download 'hf://spaces/ZHZ1024/dify/web/app/(commonLayout)/datasets/store.ts'
-
curl -L -o store.ts 'https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/app/(commonLayout)/datasets/store.ts'
311 Bytes
| 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 }), | |
| })) | |