'use client' import Link from 'next/link' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { cn } from '@/lib/utils' import { motion } from 'motion/react' import { Workflow, ArrowRight, ChevronRight } from 'lucide-react' import { PipelineRoundNode, type PipelineRound, } from '@/components/dashboard/pipeline-round-node' function Connector({ prevStatus, nextStatus, index, }: { prevStatus: string nextStatus: string index: number }) { const isCompleted = prevStatus === 'ROUND_CLOSED' || prevStatus === 'ROUND_ARCHIVED' const isNextActive = nextStatus === 'ROUND_ACTIVE' return ( ) } export function CompetitionPipeline({ rounds, }: { rounds: PipelineRound[] }) { if (rounds.length === 0) { return ( Competition Pipeline No rounds configured yet Create rounds to visualize the competition pipeline. ) } return ( Competition Pipeline All rounds {/* Scrollable container with padding to prevent cutoff */} {rounds.map((round, index) => ( {index < rounds.length - 1 && ( )} ))} ) }
No rounds configured yet
Create rounds to visualize the competition pipeline.