@namespace Connected.Components
@inherits UIComponent

@if(AvatarGroup is null || AvatarGroup.MaxGroupReached(this))
{
    <div @attributes="CustomAttributes" class="@CompiledClassList" style="@CompiledStyles">
        @if (!String.IsNullOrEmpty(Image))
        {
            if (!String.IsNullOrEmpty(ImageAltText))
            {
                <img src="@Image" alt="@ImageAltText" class="avatar-img" />
            }
            else
            {
                <img src="@Image" class="avatar-img" />
            }
        }
        else
        {
            @ChildContent
        }
    </div>
}