'use client' import { trpc } from '@/lib/trpc/client' import { cn } from '@/lib/utils' import { Skeleton } from '@/components/ui/skeleton' import { Badge } from '@/components/ui/badge' export type RoundUnassignedQueueProps = { roundId: string requiredReviews?: number } export function RoundUnassignedQueue({ roundId, requiredReviews = 3 }: RoundUnassignedQueueProps) { const { data: unassigned, isLoading } = trpc.roundAssignment.unassignedQueue.useQuery( { roundId, requiredReviews }, { refetchInterval: 15_000 }, ) return (
Unassigned Projects
Projects with fewer than {requiredReviews} jury assignments
{project.title}
{project.competitionCategory || 'No category'} {project.teamName && ` \u00b7 ${project.teamName}`}
All projects have sufficient assignments
)}