@using OpenArchival.DataAccess
@using MudBlazor
@if (File is not null)
{
}
@code {
[Parameter]
public required FilePathListing File { get; set; }
///
/// Sets the width of the image box while it loads
///
[Parameter]
public int Width { get; set; } = 600;
///
/// Sets the height of the image box while it loads
///
[Parameter]
public int Height { get; set; } = 400;
[Parameter]
public string AltText { get; set; } = "";
protected override Task OnParametersSetAsync()
{
if (File is not null || !string.IsNullOrEmpty(AltText))
{
StateHasChanged();
}
return base.OnParametersSetAsync();
}
}