diff --git a/src/components/admin/database-stats/ComparisonTable.tsx b/src/components/admin/database-stats/ComparisonTable.tsx new file mode 100644 index 00000000..82406490 --- /dev/null +++ b/src/components/admin/database-stats/ComparisonTable.tsx @@ -0,0 +1,107 @@ +import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table'; +import { Progress } from '@/components/ui/progress'; +import { Link } from 'react-router-dom'; +import { ExternalLink } from 'lucide-react'; + +interface Column { + key: string; + label: string; + numeric?: boolean; + linkBase?: string; +} + +interface ComparisonTableProps { + title: string; + data: any[]; + columns: Column[]; + slugKey: string; + parkSlugKey?: string; +} + +export function ComparisonTable({ title, data, columns, slugKey, parkSlugKey }: ComparisonTableProps) { + if (!data || data.length === 0) { + return ( +
Out of 100
++ No database health issues detected at this time. +
+- Complete overview of database content and activity + Comprehensive analytics, quality metrics, and health monitoring
+ For detailed analysis of data completeness by entity, missing fields, and improvement opportunities. +
+ + View Full Dashboard → + +