turash/bugulma/frontend/components/admin/DashboardStats.tsx
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- Remove nested git repository from bugulma/frontend/.git
- Add all frontend files to main repository tracking
- Convert from separate frontend/backend repos to unified monorepo
- Preserve all frontend code and development history as tracked files
- Eliminate nested repository complexity for simpler development workflow

This creates a proper monorepo structure with frontend and backend
coexisting in the same repository for easier development and deployment.
2025-11-25 06:02:57 +01:00

46 lines
1.4 KiB
TypeScript

import React from 'react';
import { useTranslation } from '@/hooks/useI18n.tsx';
import { BadgeCheck, Briefcase, Network, TrendingUp } from 'lucide-react';
import StatCard from '@/components/admin/StatCard.tsx';
import { Grid } from '@/components/ui/layout';
interface DashboardStatsProps {
stats: {
total: number;
verified: number;
connections: number;
newLast30Days: number;
};
}
const DashboardStats = ({ stats }: DashboardStatsProps) => {
const { t } = useTranslation();
return (
<Grid cols={{ md: 2, lg: 4 }} gap="md">
<StatCard
title={t('adminPage.totalOrgs')}
value={String(stats.total)}
icon={<Briefcase className="h-4 text-current text-muted-foreground w-4" />}
/>
<StatCard
title={t('adminPage.verifiedOrgs')}
value={String(stats.verified)}
icon={<BadgeCheck className="h-4 text-current text-muted-foreground w-4" />}
/>
<StatCard
title={t('adminPage.connections')}
value={String(stats.connections)}
icon={<Network className="h-4 text-current text-muted-foreground w-4" />}
/>
<StatCard
title={t('adminPage.newLast30Days')}
value={`+${stats.newLast30Days}`}
icon={<TrendingUp className="h-4 text-current text-muted-foreground w-4" />}
/>
</Grid>
);
};
export default React.memo(DashboardStats);