'use client' import Link from 'next/link' import type { Route } from 'next' import { trpc } from '@/lib/trpc/client' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' import { Skeleton } from '@/components/ui/skeleton' import { Button } from '@/components/ui/button' import { ArrowLeft, ArrowRight, ClipboardList, Target } from 'lucide-react' import { toast } from 'sonner' export default function JuryCompetitionsPage() { const { data: competitions, isLoading } = trpc.competition.getMyCompetitions.useQuery() if (isLoading) { return (
View competitions and rounds you're assigned to
You don't have any active competition assignments yet.
No active rounds
)} {activeRounds.length > 2 && (+{activeRounds.length - 2} more round{activeRounds.length - 2 !== 1 ? 's' : ''}
)}