| 
									
										
										
										
											2025-04-18 13:59:12 +08:00
										 |  |  | import { useHooksStore } from '@/app/components/workflow/hooks-store' | 
					
						
							| 
									
										
										
										
											2024-04-08 18:51:46 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | export const useWorkflowRun = () => { | 
					
						
							| 
									
										
										
										
											2025-04-18 13:59:12 +08:00
										 |  |  |   const handleBackupDraft = useHooksStore(s => s.handleBackupDraft) | 
					
						
							|  |  |  |   const handleLoadBackupDraft = useHooksStore(s => s.handleLoadBackupDraft) | 
					
						
							|  |  |  |   const handleRestoreFromPublishedWorkflow = useHooksStore(s => s.handleRestoreFromPublishedWorkflow) | 
					
						
							|  |  |  |   const handleRun = useHooksStore(s => s.handleRun) | 
					
						
							|  |  |  |   const handleStopRun = useHooksStore(s => s.handleStopRun) | 
					
						
							| 
									
										
										
										
											2024-04-08 18:51:46 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   return { | 
					
						
							|  |  |  |     handleBackupDraft, | 
					
						
							|  |  |  |     handleLoadBackupDraft, | 
					
						
							|  |  |  |     handleRun, | 
					
						
							|  |  |  |     handleStopRun, | 
					
						
							|  |  |  |     handleRestoreFromPublishedWorkflow, | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |