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.

665 B
Raw Blame
import type { ComponentProps } from 'react'
import type { NodeProps } from '@/app/components/workflow/types'
import { createElement } from 'react'
import { HumanInputV2Node } from './human-input-v2/node'
import { isHumanInputV2NodeData } from './human-input-v2/types'
import HumanInputNode from './human-input/node'

type WorkflowHumanInputNodeProps = NodeProps

export function WorkflowHumanInputNode(props: WorkflowHumanInputNodeProps) {
  if (isHumanInputV2NodeData(props.data))
    return createElement(HumanInputV2Node, props as ComponentProps<typeof HumanInputV2Node>)

  return createElement(HumanInputNode, props as ComponentProps<typeof HumanInputNode>)
}