import { View, type ImageStyle, type StyleProp } from 'react-native'; import Svg, { Circle, Defs, RadialGradient, Stop } from 'react-native-svg'; import { Image } from '../../components/wui-image'; import { useTheme } from '../../hooks/useTheme'; import { UiUtil } from '../../utils/UiUtil'; import styles from './styles'; export interface AvatarProps { imageSrc?: string; address?: string; style?: StyleProp; size?: number; borderWidth?: number; } export function Avatar({ imageSrc, address, style, size = 64, borderWidth = 8 }: AvatarProps) { const Theme = useTheme(); const colors = UiUtil.generateAvatarColors(address); const containerSize = size + borderWidth * 2; if (imageSrc) { return ( ); } return ( ); }