import React from "react"; function Tables({persons}) { function addEventlistener(name){ return function(event){ var personDiv = document.getElementById(name); var extend = personDiv.lastChild; if (extend.style.display === "block") { extend.style.display = "none"; } else { extend.style.display = "block"; } } } var currentDate = new Date() const sortedpersons = persons.sort(function(a, b){return b.longitude - a.longitude}); return (
RACE
{currentDate.getDate()}.{currentDate.getMonth() + 1}.{currentDate.getFullYear()}
{person.fullName}
Geschwindigkeit: {person.speed}
Status: {person.online ? "online" : "offline"}
{person.fullName}
Status: {person.online ? "online" : "offline"}