import { format } from "date-fns"; import { UptimeData } from "@/types/service.types"; import { getStatusInfo } from "./utils"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { useTheme } from "@/contexts/ThemeContext"; import { useLanguage } from "@/contexts/LanguageContext"; interface IncidentTableProps { incidents: UptimeData[]; } export function IncidentTable({ incidents }: IncidentTableProps) { const { theme } = useTheme(); const { t } = useLanguage(); if (incidents.length === 0) { return null; } return (