import { Card, CardContent } from '@/components/ui/card'; import { cn } from '@/lib/utils'; // ── StatCard ───────────────────────────────────────────────────────────────── interface StatCardProps { icon: React.ReactNode; label: string; value: string | number; iconBg?: string; } export function StatCard({ icon, label, value, iconBg = 'bg-accent/10' }: StatCardProps) { return (
{icon}

{label}

{value}

); } // ── actionColor ────────────────────────────────────────────────────────────── export function actionColor(action: string): string { if (action.includes('failed') || action.includes('locked') || action.includes('disabled')) { return 'bg-red-500/15 text-red-400'; } if (action.includes('login') || action.includes('create') || action.includes('enabled')) { return 'bg-green-500/15 text-green-400'; } if (action.includes('config') || action.includes('role') || action.includes('password')) { return 'bg-orange-500/15 text-orange-400'; } return 'bg-blue-500/15 text-blue-400'; }