import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card.tsx'; import { Grid } from '@/components/ui/layout'; import { Heading, Price, Text } from '@/components/ui/Typography.tsx'; import { DollarSign, Leaf, TrendingUp } from 'lucide-react'; type Props = { totalCo2Saved: number; totalEconomicValue: number; activeMatches: number; t: (key: string) => string; }; const ImpactMetricsSection = ({ totalCo2Saved, totalEconomicValue, activeMatches, t }: Props) => { if (totalCo2Saved <= 0 && totalEconomicValue <= 0) return null; return (
{t('dashboard.co2Saved')}
{totalCo2Saved} t {t('dashboard.perYear')}
{t('dashboard.economicValue')}
{t('dashboard.created')}
{t('dashboard.activeMatches')}
{activeMatches} {t('dashboard.operational')}
); }; export default ImpactMetricsSection;