import { FC } from 'react'; import { EdgeProps, getBezierPath, getMarkerEnd } from 'react-flow-renderer'; const CustomEdge: FC = ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, arrowHeadType, markerEndId, }) => { const edgePath = getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition }); const markerEnd = getMarkerEnd(arrowHeadType, markerEndId); return ( <> {data.text} ); }; export default CustomEdge;