'use client'; import { MessageSquare, Users, TrendingUp, Activity } from 'lucide-react'; interface StatsCardsProps { stats: { totalMessages: number; totalContacts: number; avgResponseTime: string; activeConversations: number; }; } export default function StatsCards({ stats }: StatsCardsProps) { const cards = [ { title: 'Total de Mensagens', value: stats.totalMessages.toLocaleString('pt-BR'), icon: MessageSquare, color: 'from-blue-500 to-blue-600', change: '+12.5%', }, { title: 'Contatos Ativos', value: stats.totalContacts.toLocaleString('pt-BR'), icon: Users, color: 'from-green-500 to-green-600', change: '+8.2%', }, { title: 'Tempo Médio de Resposta', value: stats.avgResponseTime, icon: Activity, color: 'from-purple-500 to-purple-600', change: '-5.3%', }, { title: 'Conversas Ativas', value: stats.activeConversations.toLocaleString('pt-BR'), icon: TrendingUp, color: 'from-orange-500 to-orange-600', change: '+15.8%', }, ]; return (
{card.value}