// frontend/src/components/admin/AIInsightCard.jsx import React from "react"; import { ArrowRight, TrendingUp, AlertTriangle, CheckCircle2, XCircle } from "lucide-react"; const typeStyles = { growth: "bg-green-50 border-green-200", warning: "bg-amber-50 border-amber-200", success: "bg-blue-50 border-blue-200", decline: "bg-red-50 border-red-200", }; const typeIcons = { growth: TrendingUp, warning: AlertTriangle, success: CheckCircle2, decline: XCircle, }; const typeIconColors = { growth: "text-green-600", warning: "text-amber-600", success: "text-blue-600", decline: "text-red-600", }; const priorityBadges = { high: "bg-red-100 text-red-700", medium: "bg-amber-100 text-amber-700", low: "bg-blue-100 text-blue-700", }; export default function AIInsightCard({ insight }) { const Icon = typeIcons[insight.type] || AlertTriangle; return (

{insight.title}

{insight.priority}

{insight.description}

{insight.metric && (
{insight.metric.value}{" "} {insight.metric.label}
)}
); }