import { Text } from '@/ui/Text';
import { Group } from '@/ui/Group';
 
interface TeamStatItemProps {
  label: string;
  value: string | number;
  intent?: 'primary' | 'success' | 'warning' | 'critical' | 'high' | 'med' | 'low';
  align?: 'left' | 'center' | 'right';
}
 
export function TeamStatItem({ label, value, intent = 'high', align = 'left' }: TeamStatItemProps) {
  return (
    <Group 
      direction="col" 
      align={align === 'center' ? 'center' : align === 'right' ? 'end' : 'start'}
      gap={1}
    >
      <Text size="xs" variant="low" block>{label}</Text>
      <Text size="sm" weight="semibold" variant={intent}>{value}</Text>
    </Group>
  );
}
