'use client' import { motion } from 'motion/react' import { formatEnumLabel } from '@/lib/utils' type PipelineRound = { id: string name: string roundType: string status: string projectStates: { PENDING: number IN_PROGRESS: number PASSED: number REJECTED: number COMPLETED: number WITHDRAWN: number total: number } liveSessionStatus: string | null assignmentCount: number } type RoundStatsLiveFinalProps = { round: PipelineRound } export function RoundStatsLiveFinal({ round }: RoundStatsLiveFinalProps) { const { projectStates, liveSessionStatus, assignmentCount } = round const sessionLabel = liveSessionStatus ? formatEnumLabel(liveSessionStatus) : 'Not started' const stats = [ { value: projectStates.total, label: 'Presenting', detail: 'Projects in finals', accent: 'text-brand-blue', }, { value: sessionLabel, label: 'Session', detail: liveSessionStatus ? 'Live session active' : 'No session yet', accent: liveSessionStatus ? 'text-emerald-600' : 'text-amber-600', isText: true, }, { value: projectStates.COMPLETED, label: 'Scored', detail: `${projectStates.total - projectStates.COMPLETED} remaining`, accent: 'text-emerald-600', }, { value: assignmentCount, label: 'Jury votes', detail: 'Jury assignments', accent: 'text-brand-teal', }, ] return ( <>
{round.name} — Live Finals
{s.label}
{s.label}
{s.detail}