// components/RouterNode.js
import { Handle, Position } from 'reactflow';

function RouterNode({ data }) {
  return (
    <div style={{ border: '2px dashed #ff9800', borderRadius: 6, padding: 10, width: 100, textAlign: 'center' }}>
      <Handle type="target" position={Position.Top} />
      <div>📡 {data.label}</div>
      <Handle type="source" position={Position.Bottom} />
    </div>
  );
}

export default RouterNode;
