import { styles } from "@/styles/components/userAvatar"; import { MaterialIcons } from "@expo/vector-icons"; import { Text, View, Image } from "react-native"; interface Props { username: string; avatar?: string | null; } export default function UserAvatar({ username, avatar }: Props) { return ( {avatar ? ( ) : ( )} {username.length > 18 ? `${username.substring(0, 18)}...` : username} ); }