import React from 'react'; import { Card, CardContent } from '@/components/ui/card'; import { cn } from '@/lib/utils'; import { TrendingUp, TrendingDown } from 'lucide-react'; /** * Grid de KPIs compartilhada. */ export const StatsGrid = ({ stats }) => { return (
{stats.map((stat, index) => (

{stat.label}

{stat.value}

{stat.trend && ( {stat.negative ? : } {stat.trend} )}
{stat.icon && (
{React.cloneElement(stat.icon, { size: 24 })}
)}
))}
); };