import React, { FC } from 'react'; import { EdgeProps, getBezierPath } from 'reactflow'; const CustomEdge: FC = ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, }) => { const edgePath = getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, }); return ( <> {data.text} ); }; export default CustomEdge;