mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
13 lines
605 B
JavaScript
13 lines
605 B
JavaScript
import { TouchableOpacity, View, Image, Text, Alert } from 'react-native';
|
|
|
|
export default function Stat({ children, source, description }) {
|
|
return (
|
|
<TouchableOpacity onPress={description ? () => Alert.alert("Info", description) : null}>
|
|
<View style={{height: 30, flexDirection: "row", justifyContent: 'center', alignItems: 'center'}}>
|
|
{source && <Image source={source} style={{width: 30, height: 30, marginRight: 5}} resizeMode="contain"/>}
|
|
<Text style={{fontSize: 15}}>{children}</Text>
|
|
</View>
|
|
</TouchableOpacity>
|
|
);
|
|
};
|