'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 } from 'lucide-react' import { PipelineRoundNode, type PipelineRound, } from '@/components/dashboard/pipeline-round-node' function Connector({ prevStatus, index, }: { prevStatus: string index: number }) { const isCompleted = prevStatus === 'ROUND_CLOSED' || prevStatus === 'ROUND_ARCHIVED' 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
{rounds.map((round, index) => (
{index < rounds.length - 1 && ( )}
))}
) }