using System;

using CommonHelpers.WASM;
using AFXUI;

namespace BookRegistry.Client {

//*************************************************************************************************
/// <summary>
/// Authorization menu item
/// </summary>
class AuthorizationMI: NavMenuItem {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static AuthorizationMI Item { get; private set; } = new AuthorizationMI();

public static string HTML() => UpdateItem().PrepareItemHtml();
public static void ApplyToUI() => UpdateItem().Magistral_SetPageNameAndIcon();
public static AuthorizationMI UpdateItem() => Item = new AuthorizationMI();

public AuthorizationMI()
{
   ID = "magistral_MI_AuthorizationA";
   HRef = "/authorization";
   PageName = "Authorization";
   Title = "Authorization page";
   IconPath = "images/nav_menu/authorization.png";
   CaptionHtml = $"{PageName} "+
      $"<span class='faint_text'>(</span>"+
      $"<img src='{IconPath}' />"+
      $"<span class='faint_text'>)</span>";
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // AuthorizationMI
//**************************************************************************************************

} // BookRegistry.Client
