'use client' import Link from 'next/link' 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 { Trophy } from 'lucide-react' export default function AwardMasterDashboard() { const { data: awards, isLoading } = trpc.specialAward.getMyAwards.useQuery() if (isLoading) { return (
{[...Array(2)].map((_, i) => ( ))}
) } return (

Award Master Dashboard

Review eligible projects and select award winners

{awards && awards.length > 0 ? (
{awards.map((award) => (
{award.name} {award.status.replace('_', ' ')}
{award.description && ( {award.description} )}

{award._count.eligibilities} eligible projects

))}
) : (

No awards assigned

You will see your awards here when they are assigned to you

)}
) }