@using MudBlazor @using RobotNet10.RobotApp.Client.Shared.SLAM Select Map for Localization @if (Maps == null || Maps.Length == 0) { No maps available. Please create a map first. } else { @foreach (var map in Maps) { @map.Name Created: @map.CreatedDate.ToString("yyyy-MM-dd HH:mm:ss") } } Cancel @code { [CascadingParameter] IMudDialogInstance Dialog { get; set; } = null!; [Parameter] public MapInfoDto[] Maps { get; set; } = Array.Empty(); private void Cancel() => Dialog.Cancel(); private void SelectMap(string mapName) { Dialog.Close(DialogResult.Ok(mapName)); } }