import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card.tsx'; import { CenteredContent } from '@/components/ui/CenteredContent.tsx'; import { Grid } from '@/components/ui/layout'; import { Heading, Text } from '@/components/ui/Typography.tsx'; type Props = { matchSuccessRate: number; avgMatchTime: number; topResourceTypes: Array<{ type: string; count: number }>; t: (key: string) => string; }; const PlatformHealthSection = ({ matchSuccessRate, avgMatchTime, topResourceTypes, t }: Props) => { if (matchSuccessRate <= 0) return null; return ( {t('dashboard.platformHealth')} {Math.round(matchSuccessRate * 100)}% {avgMatchTime.toFixed(1)} {topResourceTypes.length} ); }; export default PlatformHealthSection;