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} />
    </>
  );
}