import type { LucideIcon } from "lucide-react"; import { Building2Icon, CrosshairIcon, ShieldIcon, UsersIcon } from "lucide-react"; import { TacticalFrame } from "./tactical"; interface QuickStatsProps { activeCampaigns: number; totalMissions: number; totalStructures: number; totalFactions: number; totalMembers: number; } interface StatCell { label: string; value: number; icon: LucideIcon; } export function QuickStats({ activeCampaigns, totalMissions, totalStructures, totalFactions, totalMembers, }: QuickStatsProps) { const cells: StatCell[] = [ { label: "Campaigns", value: activeCampaigns, icon: CrosshairIcon }, { label: "Missions", value: totalMissions, icon: CrosshairIcon }, { label: "Structures", value: totalStructures, icon: Building2Icon }, { label: "Factions", value: totalFactions, icon: ShieldIcon }, { label: "Operators", value: totalMembers, icon: UsersIcon }, ]; return ( {/* gap-px over a white/10 backdrop renders hairline separators in both directions */}
{cells.map((cell) => (
{cell.value.toLocaleString()}
))}
); }