"use client"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { TrendingUp, TrendingDown, ArrowRight } from "lucide-react"; import { cn } from "@/lib/utils"; interface StatsSummaryCardsProps { totalIncome: number; totalExpenses: number; avgMonthlyExpenses: number; formatCurrency: (amount: number) => string; } export function StatsSummaryCards({ totalIncome, totalExpenses, avgMonthlyExpenses, formatCurrency, }: StatsSummaryCardsProps) { const savings = totalIncome - totalExpenses; return (
Total Revenus
{formatCurrency(totalIncome)}
Total Dépenses
{formatCurrency(totalExpenses)}
Moyenne mensuelle
{formatCurrency(avgMonthlyExpenses)}
Économies
= 0 ? "text-emerald-600" : "text-red-600", )} > {formatCurrency(savings)}
); }