@implements IDisposable

<div class="preview-window @(_isError ? "preview-error" : "")">
    @if (!string.IsNullOrEmpty(_dataUri))
    {
        <img src="@_dataUri" alt="Preview" class="preview-image" />
    }
    else
    {
        <div class="preview-placeholder">No image</div>
    }
</div>
