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

export interface StatItemProps {
  label: string;
  value: string | number;
  intent?: 'primary' | 'success' | 'warning' | 'critical' | 'high' | 'med' | 'low';
  align?: 'left' | 'center' | 'right';
}

export const StatItem = ({ 
  label, 
  value, 
  intent = 'high',
  align = 'left'
}: StatItemProps) => {
  return (
    <Box textAlign={align}>
      <Text size="xs" variant="low" block>{label}</Text>
      <Text size="sm" weight="semibold" variant={intent}>{value}</Text>
    </Box>
  );
};
