@using MudBlazor @Title @Message Cancel @ConfirmText @code { [CascadingParameter] IMudDialogInstance Dialog { get; set; } = null!; [Parameter] public string Title { get; set; } = "Confirm"; [Parameter] public string Message { get; set; } = "Are you sure?"; [Parameter] public string ConfirmText { get; set; } = "Confirm"; [Parameter] public Color ConfirmColor { get; set; } = Color.Primary; private void Cancel() => Dialog.Cancel(); private void Confirm() => Dialog.Close(DialogResult.Ok(true)); }