@using RobotNet.VDA5050.State @using RobotNet.VDA5050.Type Errors @if (Errors != null && Errors.Length > 0) { Error Type Level Description Hint References @context.ErrorType @context.ErrorLevel @(context.ErrorDescription ?? "N/A") @(context.ErrorHint ?? "N/A") @if (context.ErrorReferences != null && context.ErrorReferences.Length > 0) { @context.ErrorReferences.Length reference(s) } else { N/A } } else { No errors } @code { private Error[]? Errors { get; set; } private Color GetErrorLevelColor(ErrorLevel level) { return level switch { ErrorLevel.NONE => Color.Success, ErrorLevel.WARNING => Color.Warning, ErrorLevel.FATAL => Color.Error, _ => Color.Default }; } public void Update(Error[]? errors) { Errors = errors; StateHasChanged(); } }