import { memo } from 'react'; import { Position, type BezierEdgeProps } from '@reactflow/system'; import { getBezierPath } from '@reactflow/edge-utils'; import BaseEdge from './BaseEdge'; const BezierEdge = memo( ({ sourceX, sourceY, targetX, targetY, sourcePosition = Position.Bottom, targetPosition = Position.Top, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, style, markerEnd, markerStart, pathOptions, interactionWidth, }: BezierEdgeProps) => { const [path, labelX, labelY] = getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, curvature: pathOptions?.curvature, }); return ( ); } ); BezierEdge.displayName = 'BezierEdge'; export default BezierEdge;