This commit is contained in:
2026-09-20 11:21:26 +01:00
parent 59071f87ad
commit fd0af3172d
4 changed files with 13 additions and 14 deletions
@@ -25,27 +25,22 @@ export default function KpiSecondarySection({
{
key: "k-hosts",
label: "Total hosts",
value: String(hosts?.length || 0),
value: String(hosts?.length || 1),
},
{
key: "k-host-address",
label: "Main host address",
value:
variables?.find(
(v) => v.key == "main_host_wg_ip_address",
)?.value || "—",
variables?.find((v) => v.key == "main_host_wg_ip_address")
?.value || "—",
},
];
return (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 w-full">
{kpis.map((kpi) => (
<StatCard
key={kpi.key}
label={kpi.label}
value={kpi.value}
/>
<StatCard key={kpi.key} label={kpi.label} value={kpi.value} />
))}
</div>
);
}
}