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

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

export const HorizontalStatItem = ({ 
  label, 
  value, 
  intent = 'high',
  color
}: HorizontalStatItemProps) => {
  return (
    <Box display="flex" alignItems="center" justifyContent="between" paddingY={2}>
      <Text size="sm" variant="low">{label}</Text>
      <Text weight="semibold" variant={color ? undefined : intent} color={color}>{value}</Text>
    </Box>
  );
};
