@inherits LayoutComponentBase
@inject IBootstrapCss BootstrapCss

<div class="sidebar" style="overflow-y: auto">
    <NavMenu />
</div>

<div class="main container">
    <div class="content px-4">@Body</div>
</div>

@code {
    private bool hasBeendone = false;

    protected override async Task OnAfterRenderAsync()
    {
        if (isServerSide && !hasBeendone)
        {
            await BootstrapCss.SetBootstrapCss("4.3.1");
            hasBeendone = true;
        }
    }
}