import {type StyleProp, View, type ViewStyle} from 'react-native' import {useSession} from '#/state/session' import {UserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a, useTheme} from '#/alf' import {Person_Filled_Corner2_Rounded as PersonIcon} from '#/components/icons/Person' import type * as bsky from '#/types/bsky' type Props = { profiles: bsky.profile.AnyProfileView[] size?: 'small' | 'medium' | 'large' } export function AvatarBubbles({profiles: allProfiles, size = 'large'}: Props) { const {currentAccount} = useSession() const profiles = allProfiles.filter(p => p.did !== currentAccount?.did) const containerSize = size === 'small' ? 40 : size === 'medium' ? 56 : 120 const scale = size === 'small' ? 40 / 120 : size === 'medium' ? 56 / 120 : 1 const marginOffset = size === 'small' || size === 'medium' ? -2 : 0 let avatars = ( <> ) if (profiles.length === 3) { avatars = ( <> ) } if (profiles.length >= 4) { avatars = ( <> ) } return ( {avatars} ) } function AvatarBubble({ profile, size, style, x, y, }: { profile?: bsky.profile.AnyProfileView size: number style?: StyleProp x: number y: number }) { const t = useTheme() return ( {profile ? ( ) : ( )} ) } function Avatar({ profile, size = 76, }: { profile: bsky.profile.AnyProfileView size?: number }) { return ( ) } function AvatarPlaceholder({size = 76}: {size?: number}) { const t = useTheme() return ( ) }