@inject HttpClient Client @inject ISnackbar Snackbar @inject IJSRuntime Js @Otp
@Localizer["Copy to Clipboard"]
@Localizer["Dialog OK"]
@code { [CascadingParameter] MudDialogInstance MudDialog { get; set; } = null!; [Parameter] public string Otp { get; set; } = ""; private async Task CopyToClipboard(string text) { await Js.InvokeVoidAsync("clipboardCopy.copyText", text); } private void Submit() { MudDialog.Close(DialogResult.Ok(true)); } }