import { isNumeric } from '@xyflow/system'; import cc from 'classcat'; import { EdgeText } from './EdgeText'; import type { BaseEdgeProps } from '../../types'; export function BaseEdge({ path, labelX, labelY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, interactionWidth = 20, ...props }: BaseEdgeProps) { return ( <> {interactionWidth && ( )} {label && isNumeric(labelX) && isNumeric(labelY) ? ( ) : null} ); }