import { Box } from './Box';
import { Text } from './Text';

export interface MiniStatProps {
  label: string;
  value: string | number;
  intent?: 'primary' | 'success' | 'warning' | 'critical' | 'high' | 'med' | 'low';
  color?: string;
}

export const MiniStat = ({ 
  label, 
  value, 
  intent = 'high',
  color
}: MiniStatProps) => {
  return (
    <Box textAlign="center" padding={2} rounded="lg" bg="var(--ui-color-bg-surface-muted)">
      <Text size="lg" weight="bold" variant={color ? undefined : intent} color={color} block>{value}</Text>
      <Text size="xs" variant="low" block fontSize="10px">{label}</Text>
    </Box>
  );
};
