import React from 'react'; import { formatCurrency } from '@/packages/shared/src/utils'; import { useTranslation } from 'react-i18next'; import { Card, CardTitle } from '@kit/ui/card'; import { cn } from '@kit/ui/lib/utils'; import { Trans } from '@kit/ui/trans'; import { TeamAccountBenefitExpensesOverview } from '../_lib/server/load-team-account-benefit-expenses-overview'; import { AccountBenefitStatistics } from '../_lib/server/load-team-account-benefit-statistics'; const StatisticsCard = ({ children }: { children: React.ReactNode }) => { return {children}; }; const StatisticsCardTitle = ({ children, className, }: { children: React.ReactNode; className?: string; }) => { return ( {children} ); }; const StatisticsDescription = ({ children }: { children: React.ReactNode }) => { return

{children}

; }; const StatisticsValue = ({ children }: { children: React.ReactNode }) => { return

{children}

; }; const TeamAccountBenefitStatistics = ({ accountBenefitStatistics, expensesOverview, }: { accountBenefitStatistics: AccountBenefitStatistics; expensesOverview: TeamAccountBenefitExpensesOverview; }) => { const { i18n: { language }, } = useTranslation(); return (
{accountBenefitStatistics.companyAccountsCount} {formatCurrency({ value: accountBenefitStatistics.orders.totalSum, locale: language, currencyCode: 'EUR', })} {formatCurrency({ value: expensesOverview.currentMonthUsageTotal, locale: language, currencyCode: 'EUR', })} {formatCurrency({ value: accountBenefitStatistics.orders.analysesSum, locale: language, currencyCode: 'EUR', })} {formatCurrency({ value: accountBenefitStatistics.orders.analysisPackagesSum, locale: language, currencyCode: 'EUR', })}
); }; export default TeamAccountBenefitStatistics;