using MudBlazor; namespace MeterVault.App; /// Small wrapper over MudBlazor's message box for delete/confirm prompts in admin pages. public static class Confirm { public static async Task DeleteAsync(IDialogService dialog, string title, string message) { var result = await dialog.ShowMessageBoxAsync(title, message, yesText: "Delete", cancelText: "Cancel") .ConfigureAwait(false); return result == true; } }