import {SecuritySummaryReportResultType} from "@/types/security-summary";
import {Card, CardContent, CardDescription, CardHeader, CardTitle} from "@/Components/ui/card";
import {LockIcon} from "lucide-react";
import React from "react";

export default function OverviewCertificatesCard({ reportData }: { reportData: SecuritySummaryReportResultType }) {
    return (
        <Card>
            <CardHeader>
                <CardTitle className="flex items-center gap-2">
                    <LockIcon className="w-5 h-5"/>
                    Certificates
                </CardTitle>
                <CardDescription>Number of active and expired certificates</CardDescription>
            </CardHeader>
            <CardContent>
                <div className="text-3xl font-bold">Active: {reportData.n_cert_attivi}</div>
                <div
                    className="text-3xl font-bold text-red-700">Expired: {reportData.n_cert_scaduti}</div>
            </CardContent>
        </Card>
    )
}
