'use client'; import React from 'react'; import { Medal, Users } from 'lucide-react'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Image } from '@/ui/Image'; import { Icon } from '@/ui/Icon'; import { Surface } from '@/ui/Surface'; import { getMediaUrl } from '@/lib/utilities/media'; interface Team { id: string; name: string; logoUrl?: string; performanceLevel: string; category?: string; region?: string; languages?: string[]; isRecruiting?: boolean; memberCount: number; totalWins: number; totalRaces: number; } interface TeamRankingsTableProps { teams: Team[]; sortBy: string; onTeamClick: (id: string) => void; } export function TeamRankingsTable({ teams, sortBy, onTeamClick }: TeamRankingsTableProps) { return ( {/* Table Header */} Rank Team Members Rating Wins {/* Table Body */} {teams.map((team, index) => { return ( onTeamClick(team.id)} display="grid" className={`grid-cols-12 gap-4 p-4 w-full text-left bg-transparent border-0 cursor-pointer hover:bg-iron-gray/20 transition-colors ${ index < teams.length - 1 ? 'border-b border-charcoal-outline/50' : '' }`} > {/* Position */} {index < 3 ? : {index + 1}} {/* Team Info */} {team.name} {team.name} {team.performanceLevel} {team.category && ( {team.category} )} {/* Members */} {team.memberCount} {/* Rating */} 0 {/* Wins */} {team.totalWins} ); })} ); }