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