import { View, Text, Pressable } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { colors } from '../../lib/theme'; type Props = { postsCount: number; followersCount: number; approvedDomainsCount: number; onPostsPress?: () => void; onFollowersPress?: () => void; onApprovedDomainsPress?: () => void; }; type CardProps = { value: string; label: string; icon?: React.ComponentProps['name']; onPress?: () => void; }; function StatCard({ value, label, icon, onPress }: CardProps) { return ( ({ flex: 1, opacity: pressed ? 0.6 : 1, alignItems: 'center', justifyContent: 'center', paddingVertical: 16, paddingHorizontal: 8, })} > {value} {icon ? ( ) : null} {label} ); } function Divider() { return ( ); } /** * Community-Stats: 3 prominente Cards in einer zentrierten Reihe. * - Posts / Follower / Approved Domains * - Approved Domains: PLAIN INTEGER (kein Cap), Trophy-Icon als Community-Beitrag-Hint */ export function StatsBar({ postsCount, followersCount, approvedDomainsCount, onPostsPress, onFollowersPress, onApprovedDomainsPress, }: Props) { return ( ); }