@namespace Connected.Components
@inherits ComponentBase
@typeparam T

@if (IsEnabled)
{
   <Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize Items="@Items" Context="item" OverscanCount=@OverscanCount>
        @if (@ChildContent != null)
        {
            @ChildContent(item);
        }
    </Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize>
}
else
{
    @foreach (var item in Items ?? Array.Empty<T>())
    {
        @ChildContent(item);
    }
}

