@using RobotNet.VDA5050.State Loads @if (State?.Loads != null && State.Loads.Length > 0) { Load ID Load Type Position Weight Dimensions @(context.LoadId ?? "N/A") @(context.LoadType ?? "N/A") @(context.LoadPosition ?? "N/A") @(context.Weight > 0 ? context.Weight?.ToString("F2") + " kg" : "N/A") @if (context.LoadDimensions != null) { @($"{context.LoadDimensions.Length:F2} × {context.LoadDimensions.Width:F2}") @if (context.LoadDimensions.Height > 0) { × @context.LoadDimensions.Height.ToString("F2") } m } else { N/A } } else { No loads available } @code { public StateMsg? State { get; set; } public void Update(StateMsg? state) { State = state; StateHasChanged(); } }