import React from 'react';
import { Card, CardContent, CardHeader, CardTitle, Badge, Button } from 'xertica-ui/ui';
import { Users, DollarSign, Activity, TrendingUp } from 'lucide-react';
import { useTranslation } from 'react-i18next';
export function DashboardTemplate() {
const { t } = useTranslation();
const trendSuffix = t('dashboardTemplate.lastMonth');
return (
{t('dashboardTemplate.title')}
{t('dashboardTemplate.subtitle')}
}
/>
}
/>
}
/>
}
/>
{t('dashboardTemplate.overview')}
{t('dashboardTemplate.chartArea')}
{t('dashboardTemplate.recentEvents')}
09:00
{t('dashboardTemplate.events.userLogin')}
10:45
{t('dashboardTemplate.events.invoicePaid')}
);
}
interface StatsCardProps {
title: string;
value: string;
icon: React.ReactNode;
trend?: string;
/** Pre-translated suffix shown after the trend (e.g. "no último mês"). */
trendSuffix?: string;
}
function StatsCard({ title, value, icon, trend, trendSuffix }: StatsCardProps) {
return (
{title}
{icon}
{value}
{trend && (
{trend} {trendSuffix}
)}
);
}