--- interface Props { username: string; name?: string; url?: string; avatarUrl?: string; } const { username, name, url, avatarUrl } = Astro.props as Props; const profileUrl = url ?? `https://huggingface.co/${encodeURIComponent(username)}`; const displayName = name ?? username; const imgSrc = avatarUrl ?? `https://huggingface.co/api/users/${encodeURIComponent(username)}/avatar`; ---
{`${displayName} {displayName} @{username}