'use client'; import React from 'react'; import { Box } from '@/ui/Box'; import { Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow } from '@/ui/Table'; import { Text } from '@/ui/Text'; import { Surface } from '@/ui/Surface'; interface Standing { leagueId: string; leagueName: string; position: number; points: number; races: number; } interface TeamStandingsPanelProps { standings: Standing[]; } export function TeamStandingsPanel({ standings }: TeamStandingsPanelProps) { return ( Active Campaign Standings {standings.length > 0 ? ( League Pos Races Points {standings.map((s) => ( {s.leagueName} {s.position} {s.races} {s.points} ))}
) : ( No active campaign telemetry )}
); }