import { React } from "react"; import { DateTime } from "luxon"; import GoatCounter from "./GoatCounter"; const HistoryTable = (props) => { const data = props.data; console.log(data); let table = ( {data.map((element) => { return ( ); })}
Date Positive Case Rate
{DateTime.fromSQL(element.date, { zone: "UTC" }) .setZone(DateTime.local().zoneName) .toLocaleString({ weekday: "long", month: "long", day: "2-digit" })} {element.value}%
); return ( <>

{props.name}

{table} ); }; export default HistoryTable;