import { type StyleProp, View, type ViewStyle, Animated } from 'react-native'; import { Icon } from '../../components/wui-icon'; import { Image } from '../../components/wui-image'; import { useTheme } from '../../hooks/useTheme'; import type { SizeType } from '../../utils/TypesUtil'; import styles from './styles'; export interface WalletImageProps { imageSrc?: string; imageHeaders?: Record; size?: Exclude; style?: StyleProp; showAllWallets?: boolean; border?: boolean; } const IconSize = { xs: 10, sm: 24, md: 32, lg: 36, xl: 40 }; export function WalletImage({ imageSrc, imageHeaders, size = 'md', style, showAllWallets, border = true }: WalletImageProps) { const Theme = useTheme(); const templateVisual = () => { if (imageSrc) { return ; } if (showAllWallets) { return ( ); } return ( ); }; return ( {templateVisual()} {border && ( )} ); }