27 lines
1.1 KiB
TypeScript
27 lines
1.1 KiB
TypeScript
import {SecuritySummaryReportResultType} from "@/types/security-summary";
|
|
import {Card, CardContent, CardDescription, CardHeader, CardTitle} from "@/Components/ui/card";
|
|
import {Database} from "lucide-react";
|
|
import React from "react";
|
|
|
|
export default function OverviewDataLeaksCard({ reportData }: { reportData: SecuritySummaryReportResultType }) {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle className="flex items-center gap-2">
|
|
<Database className="w-5 h-5"/>
|
|
Data Leaks
|
|
</CardTitle>
|
|
<CardDescription>Total data leak incidents</CardDescription>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<div
|
|
className="text-3xl font-bold">{reportData.n_dataleak.total.potential_stealer}</div>
|
|
<div className="text-xs text-muted-foreground mt-1">
|
|
Including {reportData.n_dataleak.total.domain_stealer} domain stealer
|
|
and {reportData.n_dataleak.total.other_stealer} other leaks
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|