<MudPaper Class="admin-surface" Elevation="0">
    @if (Loading)
    {
        @if (SkeletonContent is not null)
        {
            @SkeletonContent
        }
        else
        {
            <AdminSkeletonRows />
        }
    }
    else if (ChildContent is not null)
    {
        @ChildContent
    }
</MudPaper>

@code {
    [Parameter]
    public bool Loading { get; set; }

    [Parameter]
    public RenderFragment? ChildContent { get; set; }

    [Parameter]
    public RenderFragment? SkeletonContent { get; set; }
}
