import { Clock } from "lucide-react"; import { useTranslation } from "react-i18next"; import type { ServerMetrics } from "@/main-axios"; import { MetricCard } from "./MetricCard"; export function UptimeCard({ metrics }: { metrics: ServerMetrics | null }) { const { t } = useTranslation(); const uptime = metrics?.uptime; return ( } >
{uptime?.formatted ?? "N/A"} {uptime?.seconds != null && ( {Math.floor(uptime.seconds).toLocaleString()}{" "} {t("hostMetrics.seconds")} )}
); }