@implements IDisposable

<div class="error-preview-panel">
    @foreach (var error in _errors)
    {
        <div class="error-card" @onclick="() => OnErrorClicked(error)">
            @{
                var uri = error.ImageAnalysis?.ToBase64DataUri(50);
            }
            @if (!string.IsNullOrEmpty(uri))
            {
                <img src="@uri" alt="Error" class="error-thumbnail" />
            }
            <span class="error-title">@error.Title</span>
        </div>
    }
</div>
