import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { useTheme } from '../theme/context'; interface BadgeProps { label: string; value?: string; color?: string; // Optional override } export function StatBadge({ label, value, color }: BadgeProps) { const theme = useTheme(); const accentColor = color || theme.colors.primary; return ( {label} {value && {value}} ); } const styles = StyleSheet.create({ container: { paddingVertical: 6, paddingHorizontal: 10, borderWidth: 1, alignItems: 'center', justifyContent: 'center', }, label: { fontSize: 10, textTransform: 'uppercase', letterSpacing: 0.5, marginBottom: 2, }, value: { fontSize: 14, fontWeight: '700', }, });