mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 19:03:09 +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 }),
 | |
| }))
 | 
