@using AntDesign.Docs.Services
@inject ILanguageService LanguageService @inject NavigationManager NavigationManager @inject HttpClient HttpClient @inject DemoService DemoService; @code { [Parameter] public DemoMenuItem[] MenuItems { get; set; } = {}; static readonly RenderFragment<(DemoMenuItem[] items, ILanguageService languageService, int level)> menuItemTemplate = context => @ @foreach (var menu in context.items) { if (menu.Type == "menuItem") { } else if (menu.Type == "subMenu") {