"use client"; import { BarChart3 } from "lucide-react"; import { useTranslation } from "react-i18next"; import { EarningsChart } from "@/components/analysis/earnings-chart"; import { Card } from "@/components/ui/card"; import type { Analytics } from "@/lib/analytics"; import { formatMoney } from "@/lib/invoices"; function Stat({ label, value }: { label: string; value: string }) { return (
{label} {value}
); } // The agent's analytics card: clinic KPIs + earnings, with a Bklit earnings // chart (reused from the Analysis page). export function AnalyticsCard({ data }: { data: Analytics }) { const { t } = useTranslation(); return (
{t("chat.analyticsCard.title")}
{t("chat.analyticsCard.byMonth")}
); }