"use client"; import { useEffect, useState } from "react"; import ProviderIcon from "@/shared/components/ProviderIcon"; const CLI_TOOLS = [ { id: "claude", name: "Claude Code", image: "/providers/claude.png" }, { id: "codex", name: "OpenAI Codex", image: "/providers/codex.png" }, { id: "cline", name: "Cline", image: "/providers/cline.png" }, { id: "cursor", name: "Cursor", image: "/providers/cursor.png" }, ]; const PROVIDERS = [ { id: "openai", name: "OpenAI", color: "bg-emerald-500", textColor: "text-white", }, { id: "anthropic", name: "Anthropic", color: "bg-orange-400", textColor: "text-white", }, { id: "gemini", name: "Gemini", color: "bg-blue-500", textColor: "text-white", }, { id: "github", name: "GitHub Copilot", color: "bg-gray-700", textColor: "text-white", }, ]; export default function FlowAnimation() { const [activeFlow, setActiveFlow] = useState(0); useEffect(() => { const interval = setInterval(() => { setActiveFlow((prev) => (prev + 1) % PROVIDERS.length); }, 2000); return () => clearInterval(interval); }, []); return (
Interactive diagram visible on desktop