import React from 'react'; import { Grid } from './primitives/Grid'; import { GridItem } from './primitives/GridItem'; import { Surface } from './primitives/Surface'; import { Text } from './Text'; import { Stack } from './primitives/Stack'; type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 12; interface StatItem { label: string; value: string | number; subValue?: string; color?: string; icon?: React.ElementType; } interface StatGridProps { stats: StatItem[]; cols?: GridCols; mdCols?: GridCols; lgCols?: GridCols; className?: string; } export function StatGrid({ stats, cols = 2, mdCols = 3, lgCols = 4, className = '' }: StatGridProps) { return ( {stats.map((stat, index) => ( {stat.label} {stat.value} {stat.subValue && ( {stat.subValue} )} ))} ); }