@namespace Connected.Components

@if (IsEnabled)
{
    <div class="popover-provider">
	    @foreach (var handler in Service.Handlers)
	    {
            <Render @ref="handler.ElementReference" @key="handler.Id">
		        <div id="@($"popovercontent-{handler.Id}")" data-ticks="@(handler.ActivationDate?.Ticks ?? 0)" @attributes="@handler.UserAttributes" class="@handler.Class" style="@handler.Style">
			        @if (handler.ShowContent == true)
			        {
				        @handler.Fragment
			        }
		        </div>
            </Render>
	    }
    </div>
}
