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.

463 B
Raw Blame
import type { NodeProps } from 'reactflow'
import { memo } from 'react'
import BaseNode from './_base/node'
import { NodeComponentMap } from './components'

const CustomNode = (props: NodeProps) => {
  const nodeData = props.data
  const NodeComponent = NodeComponentMap[nodeData.type]!

  return (
    <BaseNode id={props.id} data={props.data}>
      <NodeComponent />
    </BaseNode>
  )
}
CustomNode.displayName = 'CustomNode'

export default memo(CustomNode)