17 lines
630 B
TypeScript
17 lines
630 B
TypeScript
'use client'
|
|
|
|
import { Handle, Position, type NodeProps } from '@xyflow/react'
|
|
|
|
export default function PipeNode({ data }: NodeProps) {
|
|
return (
|
|
<div className="flow-node">
|
|
<Handle type="target" position={Position.Left} className="!bg-foam/30 !w-3 !h-3 !rounded-full !border-0" />
|
|
<Handle type="source" position={Position.Right} className="!bg-foam/30 !w-3 !h-3 !rounded-full !border-0" />
|
|
<div className="text-center">
|
|
<div className="text-foam/40 text-lg mb-1">⟷</div>
|
|
<div className="text-foam/50 text-xs font-light">{(data as any).label || 'Pipe'}</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|