import { type OnRampFiatCurrency, type OnRampCryptoCurrency } from '@reown/appkit-common-react-native'; import { Pressable, FlexView, Spacing, Text, useTheme, Icon, BorderRadius } from '@reown/appkit-ui-react-native'; import { StyleSheet, Image, type StyleProp, type ViewStyle } from 'react-native'; export const ITEM_HEIGHT = 60; interface Props { onPress: (item: OnRampFiatCurrency | OnRampCryptoCurrency) => void; item: OnRampFiatCurrency | OnRampCryptoCurrency; selected: boolean; title: string; subtitle: string; testID?: string; style?: StyleProp; } export function Currency({ onPress, item, selected, title, subtitle, testID, style }: Props) { const Theme = useTheme(); const handlePress = () => { onPress(item); }; return ( {title} {subtitle} {selected ? ( ) : null} ); } const styles = StyleSheet.create({ container: { justifyContent: 'center', height: ITEM_HEIGHT, borderRadius: BorderRadius.s }, logo: { width: 36, height: 36, borderRadius: BorderRadius.full, marginRight: Spacing.xs }, checkmark: { marginRight: Spacing['2xs'] }, selected: { borderWidth: 1 }, text: { flex: 1 } });