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 LeaksUnresolvedCard({ reportData }: { reportData: SecuritySummaryReportResultType }) {
    return (
        <Card>
            <CardHeader>
                <CardTitle className="flex items-center gap-2">
                    <Database className="w-5 h-5"/>
                    Unresolved
                </CardTitle>
                <CardDescription>Unresolved data leak incidents</CardDescription>
            </CardHeader>
            <CardContent>
                <div
                    className="text-3xl font-bold">{reportData.n_dataleak.unresolved.potential_stealer}</div>
                <div className="text-xs text-muted-foreground mt-1">
                    Including {reportData.n_dataleak.unresolved.domain_stealer} domain stealer
                    and {reportData.n_dataleak.unresolved.other_stealer} other leaks
                </div>
            </CardContent>
        </Card>
    )
}
