import { NumberUtil, type OnRampQuote } from '@reown/appkit-common-react-native'; import { FlexView, Image, Spacing, Text, Tag, useTheme, BorderRadius, Icon, Pressable } from '@reown/appkit-ui-react-native'; import { StyleSheet } from 'react-native'; interface Props { item: OnRampQuote; isBestDeal?: boolean; tagText?: string; logoURL?: string; onQuotePress: (item: OnRampQuote) => void; selected?: boolean; testID?: string; } export const ITEM_HEIGHT = 64; export function Quote({ item, logoURL, onQuotePress, selected, tagText, testID }: Props) { const Theme = useTheme(); return ( onQuotePress(item)} testID={testID} > {logoURL ? ( ) : ( )} {item.serviceProvider?.toLowerCase()} {tagText ? ( {tagText} ) : null} {NumberUtil.roundNumber(item.destinationAmount, 6, 5)}{' '} {item.destinationCurrencyCode?.split('_')[0]} {selected ? : null} ); } const styles = StyleSheet.create({ container: { borderRadius: BorderRadius.xs, borderWidth: 1, borderColor: 'transparent', height: ITEM_HEIGHT, justifyContent: 'center' }, logo: { height: 40, width: 40, borderRadius: BorderRadius['3xs'], marginRight: Spacing.xs }, providerText: { textTransform: 'capitalize' }, tag: { padding: Spacing['3xs'], marginLeft: Spacing['2xs'] } });