import { BaseEdge, EdgeLabelRenderer, getSmoothStepPath, type EdgeProps } from '@xyflow/react'; import { edgeDisconnectRef } from './strategyEditorCallbacks'; export function StrategyFlowEdge({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, selected, }: EdgeProps) { const [edgePath, labelX, labelY] = getSmoothStepPath({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, }); return ( <> {selected && edgeDisconnectRef.current && ( )} ); }