import React from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { useTheme } from '@theme'; import { getStyles } from './profileInfoRow.styles'; import { ProfileInfoRowProps } from './profileInfoRow.props'; export const ProfileInfoRow: React.FC = ({ icon, label, value, valueColor, isBadge = false, badgeBgColor, onPress, isLast = false, containerStyle, }) => { const { theme: colors } = useTheme(); const styles = getStyles(colors); const Content = ( {label} {isBadge ? ( {value} ) : ( {value} )} ); if (onPress) { return ( {Content} ); } return Content; };