import React from 'react'; import { StyleSheet, View } from 'react-native'; import { Card, Text, useTheme } from 'react-native-paper'; import type { MD3Theme } from 'react-native-paper'; interface StatCardProps { title: string; value: number | string; suffix?: string; color?: string; icon?: string; } export const StatCard: React.FC = ({ title, value, suffix, color, icon }) => { const theme = useTheme(); return ( {icon ? ( {icon} ) : null} {title} {value} {suffix ? {suffix} : null} ); }; const styles = StyleSheet.create({ card: { flex: 1, minWidth: 140, }, content: { paddingVertical: 12, paddingHorizontal: 16, }, headerRow: { flexDirection: 'row', alignItems: 'center', marginBottom: 4, }, icon: { fontSize: 18, marginRight: 6, }, title: { opacity: 0.7, }, value: { fontWeight: 'bold', }, suffix: { fontWeight: 'normal', opacity: 0.6, }, }); interface StatCardRowProps { items: StatCardProps[]; } export const StatCardRow: React.FC = ({ items }) => { return ( {items.map((item, index) => ( ))} ); }; const statRowStyles = StyleSheet.create({ container: { flexDirection: 'row', flexWrap: 'wrap', gap: 12, marginVertical: 6, }, });