@inherits LayoutComponentBase

@inject NavigationManager _navManager


@if (_navManager.ToBaseRelativePath(_navManager.Uri).Length == 0)
{
    @Body
}
else
{
    <AuthorizeView>
        <Authorized>
            <div class="wrap">
                <Sidebar />
                <div class="main-content">
                    @Body
                    <Footer />
                </div>
            </div>
        </Authorized>
        <NotAuthorized>
            @Body
        </NotAuthorized>
    </AuthorizeView>
}