"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 (
{/* Icône en arrière-plan */}
Total Revenus
{formatCurrency(totalIncome)}
{/* Icône en arrière-plan */}
Total Dépenses
{formatCurrency(totalExpenses)}
{/* Icône en arrière-plan */}
Moyenne mensuelle
{formatCurrency(avgMonthlyExpenses)}
{/* Icône en arrière-plan */}
= 0 ? "border-success" : "border-destructive", )} />
Économies
= 0 ? "text-success" : "text-destructive", )} > {formatCurrency(savings)}
); }