'use client' import { BaseEdge, getBezierPath, type EdgeProps } from '@xyflow/react' export default function AnimatedPipeEdge({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, style, }: EdgeProps) { const [edgePath] = getBezierPath({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, }) const flowRate = (data as any)?.flowRate ?? 3 const pipeWidth = Math.max(2, Math.min(12, flowRate * 2)) return ( <> {/* Outer wall */} {/* Inner flow with animation */} ) }