r-flow / src /nodes /ToolNode.tsx
ruv's picture
Create ToolNode.tsx
e2b35f5 verified
raw
history blame contribute delete
350 Bytes
import React from 'react';
import { Handle, Position } from 'reactflow';
export function ToolNode({ data }) {
return (
<>
<Handle type="target" position={Position.Top} />
<div>
<strong>{data.label}</strong>
<div>{data.tool}</div>
</div>
<Handle type="source" position={Position.Bottom} />
</>
);
}