@using TIAMSharedUI.Pages.Components
@using TIAMWebApp.Shared.Application.Interfaces
@using AyCode.Interfaces.StorageHandlers
@using Microsoft.Extensions.Localization


<nav class="navbar sticky-top navbar-expand-lg">
    <div class="container-fluid">        
        <a class="navbar-brand" href="#"><img height="25" src="_content/TIAMSharedUI/images/logo_wide.png" alt="TourIam Logo" title="TourIAm Logo" /></a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <img src="_content/TIAMSharedUI/images/navbar-toggler.png" width="40" />
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <!--NavLink class="nav-link" href="" Match="NavLinkMatch.All"-->
                    <NavLink class="nav-link" href="index">
                        <!--span class="oi oi-home" aria-hidden="true"></span--> 
                        @localizer.GetString("NavMenu.Home")
                    </NavLink>
                </li>
                <li class="nav-item">
                    <NavLink class="nav-link" href="transfer">
                        @localizer.GetString("NavMenu.Transfer")
                    </NavLink>
                </li><li class="nav-item">
                    <NavLink class="nav-link" href="swagger">
                        API
                    </NavLink>
                </li>
                <li class="nav-item dropdown">
                    <NavLink class="nav-link" href="settings">
                        @localizer.GetString("NavMenu.Settings")
                    </NavLink>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <li><a class="dropdown-item" href="#">Action</a></li>
                        <li><a class="dropdown-item" href="#">Another action</a></li>
                        <li><hr class="dropdown-divider"></li>
                        <li><a class="dropdown-item" href="#">Something else here</a></li>
                    </ul>
                </li>
                
                
                    
                
            </ul>
            <ul class="nav navbar-nav navbar-right">
                @if(!myUser)
                {                    
                    <li class="nav-item">
                        <NavLink class="nav-link" href="login">
                            @localizer.GetString("NavMenu.Login")
                        </NavLink>
                    </li>
                }
                else
                {
                    @if (hasProperty)
                    {
                        <li class="nav-item">
                            <NavLink class="nav-link" href="user/admin">
                                @localizer.GetString("NavMenu.Admin")

                            </NavLink>
                        </li>
                    }
                    <li class="nav-item">
                        <div class="btn-nav">
                            <NavLink class="btn btn-primary btn-small navbar-btn" href="#" @onclick="SignOut">
                                @localizer.GetString("NavMenu.SignOut")
                            </NavLink>
                        </div>

                    </li>
                }
                
            </ul>
                
        </div>
    </div>
</nav>

@code {
    
}
