import React from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { TokenIcon } from './TokenIcon'; import { KurdistanColors } from '../theme/colors'; interface BalanceCardProps { symbol: string; name: string; balance: string; value?: string; change?: string; onPress?: () => void; } export const BalanceCard: React.FC = ({ symbol, name, balance, value, change, onPress, }) => { const changeValue = parseFloat(change || '0'); const isPositive = changeValue >= 0; return ( {symbol} {balance} {name} {value && {value}} {change && ( {isPositive ? '+' : ''} {change} )} ); }; const styles = StyleSheet.create({ container: { backgroundColor: '#FFFFFF', padding: 16, borderRadius: 12, marginBottom: 12, boxShadow: '0px 2px 4px rgba(0, 0, 0, 0.1)', elevation: 3, }, row: { flexDirection: 'row', alignItems: 'center', }, info: { flex: 1, marginLeft: 12, }, nameRow: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginBottom: 4, }, symbol: { fontSize: 18, fontWeight: '700', color: '#000', }, balance: { fontSize: 18, fontWeight: '600', color: '#000', }, detailsRow: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', }, name: { fontSize: 14, color: '#666', }, value: { fontSize: 14, color: '#666', }, changeContainer: { marginTop: 8, alignItems: 'flex-end', }, change: { fontSize: 12, fontWeight: '600', }, });