import { FC } from 'react'; import { EdgeProps, getBezierPath, EdgeText, getEdgeCenter } from 'react-flow-renderer'; const CustomEdge: FC = ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, }) => { const edgePath = getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition }); const [centerX, centerY] = getEdgeCenter({ sourceX, sourceY, targetX, targetY, }); return ( <> console.log(data)} /> ; ); }; export default CustomEdge;