import { Card, CardContent, CardHeader } from '@/components/ui/Card';

interface SecurityWidgetProps {
  onClick?: () => void;
}

export default function SecurityWidget({ onClick }: SecurityWidgetProps) {
  return (
    <Card
      onClick={onClick}
      className="cursor-pointer hover:border-blue-300 transition-all duration-300 ease-in-out"
    >
      <CardHeader>
        <h2 className="text-lg font-semibold transition-colors">Posture de Sécurité</h2>
      </CardHeader>
      <CardContent className="p-6">
        <div className="flex items-baseline space-x-2 mb-4">
          <span className="text-3xl font-bold text-slate-900">1,432</span>
          <span className="text-sm text-slate-500">menaces bloquées (30j)</span>
        </div>
        <div className="space-y-3">
          <div className="flex justify-between items-center text-sm">
            <span className="text-slate-600">Bouclier Cloudflare WAF</span>
            <span className="text-emerald-500 font-medium">Actif</span>
          </div>
          <div className="flex justify-between items-center text-sm">
            <span className="text-slate-600">Dernier audit de vulnérabilité</span>
            <span className="text-slate-900 font-medium">Il y a 12 jours</span>
          </div>
        </div>
      </CardContent>
    </Card>
  );
}