import FontAwesome from "@expo/vector-icons/FontAwesome"; import { FC } from "react"; import { Image, Pressable, Text, View } from "react-native"; export type AvatarProps = { avatar: string; name: string; handle: string; did: string; scrobblingSince: string; onOpenBlueskyProfile: (didOrHandle: string) => void; onViewOnPdsls: (did: string) => void; }; const Avatar: FC = (props) => { const { avatar, name, handle, scrobblingSince, did, onOpenBlueskyProfile, onViewOnPdsls, } = props; return ( {name} onViewOnPdsls(did)}> props.onOpenBlueskyProfile(handle)}> {handle} scrobbling since {scrobblingSince} ); }; export default Avatar;