@inject IJSRuntime JS
@Status.EmojiOrDefault
@Status.Address
@if (Editable) { }
@Status.HtmlContent
@code { [Parameter] public Status Status { get; set; } [Parameter] public bool Editable { get; set; } = false; [Parameter] public EditStatusDialog? Dialog { get; set; } private async Task EditStatus(EventArgs e) { Dialog.Status = Status; await InvokeAsync(StateHasChanged); await JS.InvokeVoidAsync("ui", "#" + Dialog?.id); } public async Task ShareClick(EventArgs e){ await Share.Default.RequestAsync(new ShareTextRequest{ Text = $"{Status.Content}\n- from [@{Status.Address}]({Status.Url})", Title = "I saw this on status.lol", Subject = "I saw this on status.lol" }); } }