"use client"; import { motion } from "framer-motion"; import clsx from "clsx"; type Props = { className?: string; accent?: string; gridStroke?: string; }; const W = 760; const H = 420; export default function PodsFlow({ className, accent = "#00b8db", gridStroke = "#2b2a2a", }: Props) { const pods = [ { x: 100, y: 180, label: "Pod 1" }, { x: 260, y: 180, label: "Pod 2" }, { x: 420, y: 180, label: "Pod 3" }, { x: 580, y: 180, label: "Pod 4" }, ]; // Pulse path const path = ` M ${pods[0].x + 80} ${pods[0].y + 40} L ${pods[1].x - 10} ${pods[1].y + 40} L ${pods[1].x + 80} ${pods[1].y + 40} L ${pods[2].x - 10} ${pods[2].y + 40} L ${pods[2].x + 80} ${pods[2].y + 40} L ${pods[3].x - 10} ${pods[3].y + 40} `; // Arrow segments const arrows = [ { d: `M ${pods[0].x + 80} ${pods[0].y + 40} L ${pods[1].x - 6} ${pods[1].y + 40}`, end: { x: pods[1].x - 6, y: pods[1].y + 40 }, }, { d: `M ${pods[1].x + 80} ${pods[1].y + 40} L ${pods[2].x - 6} ${pods[2].y + 40}`, end: { x: pods[2].x - 6, y: pods[2].y + 40 }, }, { d: `M ${pods[2].x + 80} ${pods[2].y + 40} L ${pods[3].x - 6} ${pods[3].y + 40}`, end: { x: pods[3].x - 6, y: pods[3].y + 40 }, }, ]; return (
); }