@inherits MSGComponentBase

<div class="@this.Classes" style="@this.Styles">
    @if (this.HeaderContent is not null)
    {
        <div>
            @this.HeaderContent
        </div>
    }
    <div class="flex-auto overflow-auto mb-3">
        @this.ChildContent
        
        <div style="max-height: 0.1em;" @ref="@this.AnchorAfterChildContent">
            &nbsp;
        </div>
    </div>

    @if (this.FooterContent is not null)
    {
        <MudPaper Class="pa-3 mb-3 border-solid border rounded-lg">
            @this.FooterContent
        </MudPaper>
    }
</div>