"use client"; import { Card } from "@/components/ui/card"; import { FileText, Clipboard, CheckCircle, Clock } from "lucide-react"; import { DashboardStats } from "@/types/dashboard"; interface StatsCardsProps { stats: DashboardStats; } export function StatsCards({ stats }: StatsCardsProps) { const cards = [ { title: "Total Correspondences", value: stats.correspondences, icon: FileText, color: "text-blue-600", bgColor: "bg-blue-50", }, { title: "Active RFAs", value: stats.rfas, icon: Clipboard, color: "text-purple-600", bgColor: "bg-purple-50", }, { title: "Approved Documents", value: stats.approved, icon: CheckCircle, color: "text-green-600", bgColor: "bg-green-50", }, { title: "Pending Approvals", value: stats.pending, icon: Clock, color: "text-orange-600", bgColor: "bg-orange-50", }, ]; return (
{cards.map((card) => { const Icon = card.icon; return (

{card.title}

{card.value}

); })}
); }