@inherits LayoutComponentBase
@using TIAMSharedUI.Shared.Users
@using TIAMWebApp.Shared.Application.Interfaces
@using TIAMWebApp.Shared.Application.Models;
@inject NavigationManager NavigationManager
@inject IUserDataService userDataService
<div class="page">
    <div class="my-sidebar">
        
        <AdminNavMenu />
    </div>

    <main>
        
        <article class="content">
           
            @Body
        </article>
    </main>
</div>

@code {

    /*bool isUserLoggedIn;
    int userType = 0;

    protected override async Task OnInitializedAsync()
    {
        var user = await userDataService.IsLoggedInAsync();
        isUserLoggedIn = user.IsLoggedIn;        

        if (!isUserLoggedIn)
        {
            NavigationManager.NavigateTo("/login");
        }
    }*/
}
