import type Avatar from "./Avatar.js";
import Icon from "./Icon.js";
export default function AvatarTemplate(this: Avatar) {
return (
{this._hasImage ?
: <>
{this.icon && }
{this.initials ? (
<>
{/* Show initials + hidden fallback icon */}
{this.validInitials}
>
) : (
// Show fallback icon only
)}
>
}
);
}