diff --git a/web/components/server/server-security-page.tsx b/web/components/server/server-security-page.tsx
index c56039a9..d06d0217 100644
--- a/web/components/server/server-security-page.tsx
+++ b/web/components/server/server-security-page.tsx
@@ -1,12 +1,12 @@
"use client";
import {
- type Activity,
AlertTriangle,
Ban,
CheckCircle2,
Clock3,
Database,
+ type LucideIcon,
Radio,
ShieldCheck,
XCircle,
@@ -103,29 +103,24 @@ function getOverallState(
return "healthy";
}
-function ComponentCard({
+function ComponentStatus({
title,
- description,
available,
icon: Icon,
children,
}: {
title: string;
- description: string;
available: boolean;
- icon: typeof Activity;
+ icon: LucideIcon;
children?: React.ReactNode;
}) {
return (
-
+
+ {title}
+
| Target | Action | @@ -365,16 +356,16 @@ function DecisionRows({ records }: { records: CrowdSecDecision[] }) {||||||||
|---|---|---|---|---|---|---|---|---|---|
| + |
{record.scope}
{record.value}
|
- {record.action} | -{record.reason || "—"} | -{record.origin || "—"} | -+ | {record.action} | +{record.reason || "—"} | +{record.origin || "—"} | +
|
| Detected | Scenario | @@ -402,13 +393,13 @@ function AlertRows({ records }: { records: CrowdSecAlert[] }) {||||||||
|---|---|---|---|---|---|---|---|---|---|
| + |
|
- {record.scenario || "—"} | -{record.sourceIp || "—"} | -{record.country || "—"} | -+ | {record.scenario || "—"} | +{record.sourceIp || "—"} | +{record.country || "—"} | +{record.eventCount} |