import React from 'react'; import { Card } from '@/ui/Card'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { Heading } from '@/ui/Heading'; import { Table, TableHead, TableBody, TableRow, TableHeader, TableCell } from '@/ui/Table'; interface PointsTableProps { title?: string; points: { position: number; points: number }[]; } export function PointsTable({ title = 'Points Distribution', points }: PointsTableProps) { return ( {title} Position Points {points.map(({ position, points: pts }) => ( {position} {position === 1 ? '1st' : position === 2 ? '2nd' : position === 3 ? '3rd' : `${position}th`} {pts} pts ))}
); }