Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

628 B
Raw Blame
import { useHooksStore } from '@/app/components/workflow/hooks-store'

export const useWorkflowRun = () => {
  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)

  return {
    handleBackupDraft,
    handleLoadBackupDraft,
    handleRun,
    handleStopRun,
    handleRestoreFromPublishedWorkflow,
  }
}