@inject IJSRuntime JS
@if(!string.IsNullOrWhiteSpace(Pic.Description)){

@((MarkupString)Pic.DescriptionHtml)

} else {
This picture needs a description in order to be shared.
}
@code { [Parameter] public Pic Pic {get; set;} [Parameter] public bool Editable { get; set; } = false; [Parameter] public EditPicDialog? Dialog { get; set; } private async Task EditPic(EventArgs e){ Dialog.Pic = Pic; // await InvokeAsync(StateHasChanged); await JS.InvokeVoidAsync("ui", "#" + Dialog?.id); } public async Task ShareClick(EventArgs e){ await Share.Default.RequestAsync(new ShareTextRequest{ Uri = Pic.Url, Text = Pic.Description, Title = "I saw this on some.pics", Subject = "I saw this on some.pics" }); } }