interface TournamentType { _id: string; location: string; department: string; tournament: string; url: string; time_control: string; date: string; coordinates: [number, number]; } export default function TournamentTable({ tournamentData }) { const tournaments = tournamentData.map((t: TournamentType) => ( {t.date} {t.location} {t.tournament} {t.time_control} )); return (
{tournaments}
Date Ville Tournois Cadence
); }