import React from 'react'; import Card from '@/components/ui/Card'; interface PointsTableProps { title?: string; points: { position: number; points: number }[]; } export default function PointsTable({ title = 'Points Distribution', points }: PointsTableProps) { return (

{title}

{points.map(({ position, points: pts }) => ( ))}
Position Points
{position}
{position === 1 ? '1st' : position === 2 ? '2nd' : position === 3 ? '3rd' : `${position}th`}
{pts} pts
); }