@using RobotNet.VDA5050.State @using RobotNet.VDA5050.Type Information @if (Info != null && Info.Length > 0) { Info Type Level Description References @context.InfoType @context.InfoLevel @(context.InfoDescription ?? "N/A") @if (context.InfoReferences != null && context.InfoReferences.Length > 0) { @context.InfoReferences.Length reference(s) } else { N/A } } else { No information available } @code { private Information[]? Info { get; set; } private Color GetInfoLevelColor(InfoLevel level) { return level switch { InfoLevel.INFO => Color.Info, InfoLevel.DEBUG => Color.Default, _ => Color.Default }; } public void Update(Information[]? info) { Info = info; StateHasChanged(); } }