import { useData } from "../api/useData"; import { useTranslation } from "react-i18next"; import { Incident } from "./Incident"; import { Skeleton } from "./Skeleton"; export const HistoricalIncidents = () => { const { historicalIncidents, loading } = useData(); const { t } = useTranslation(); return (
{t("history")}
{loading ? ( <> ) : ( historicalIncidents.map((incident) => ( )) )}
); };