import { BorderRadius, FlexView, Icon, Image, LoadingSpinner, Pressable, Spacing, Text, useTheme } from '@reown/appkit-ui-react-native'; import { StyleSheet, View } from 'react-native'; interface PaymentButtonProps { disabled?: boolean; loading?: boolean; title: string; subtitle?: string; paymentLogo?: string; providerLogo?: string; onPress: () => void; testID?: string; } function PaymentButton({ disabled, loading, title, subtitle, paymentLogo, providerLogo, onPress, testID }: PaymentButtonProps) { const Theme = useTheme(); const backgroundColor = Theme['gray-glass-005']; return ( {paymentLogo ? ( ) : ( )} {title} {subtitle ? ( {providerLogo ? ( <> via ) : null} {subtitle} ) : null} {loading ? ( ) : disabled ? ( ) : ( )} ); } const styles = StyleSheet.create({ pressable: { borderRadius: BorderRadius.xs }, container: { padding: Spacing.s, borderRadius: BorderRadius.xs }, iconContainer: { height: 40, width: 40, borderRadius: BorderRadius['3xs'] }, paymentLogo: { height: 24, width: 24 }, providerLogo: { height: 16, width: 16, marginHorizontal: Spacing['4xs'], borderRadius: BorderRadius['5xs'] }, rightIcon: { marginRight: Spacing.xs } }); export default PaymentButton;