import type { DeviceType } from "@anydrop/shared"; interface PeerAvatarProps { displayName: string; deviceType: DeviceType; avatar?: string; online?: boolean; onClick?: () => void; isSelected?: boolean; size?: "sm" | "md" | "lg"; } const DEVICE_GLYPH: Record = { phone: "phone", tablet: "tablet", laptop: "laptop", desktop: "desk", }; const sizeClasses = { sm: { container: "w-12 h-12", label: "text-[10px]" }, md: { container: "w-16 h-16", label: "text-[11px]" }, lg: { container: "w-20 h-20", label: "text-xs" }, }; export default function PeerAvatar({ displayName, deviceType, avatar, online = true, onClick, isSelected, size = "md", }: PeerAvatarProps) { const s = sizeClasses[size]; const isOffline = !online; return ( ); }