import { Image, ImageStyle, StyleProp, StyleSheet, View } from 'react-native'; import useTheme from '../hooks/useTheme'; import WalletIcon from '../assets/WalletIcon'; interface Props { size: 'xs' | 'sm' | 'md' | 'lg'; url?: string; style?: StyleProp; } const sizeMap = { xs: 23, sm: 30, md: 60, lg: 90, }; function WalletImage({ url, size, style }: Props) { const Theme = useTheme(); const sizeNum = sizeMap[size]; return url ? ( ) : ( ); } const styles = StyleSheet.create({ icon: { borderWidth: 1, }, placeholderIcon: { alignItems: 'center', justifyContent: 'center', borderStyle: 'dashed', borderWidth: 1, }, }); export default WalletImage;