@if (Elements is not null)
{
    <div class="container-loader">
        <span>Download risorse in corso</span>
        <div>
            @foreach (var element in Elements)
            {
                <div class="progress-content">
                    <span>@element.Key</span>
                    <MudProgressLinear Indeterminate="@(!element.Value)" Value="100" Rounded="true" Color="@(element.Value ? Color.Tertiary : Color.Secondary)" Size="Size.Large" />
                </div>
            }
        </div>
    </div>
}

@code
{
    [Parameter] public Dictionary<string, bool>? Elements { get; set; }
}