@using MudBlazor

<MudDialog>
    <DialogContent>
        <MudText>정말로 삭제하시겠습니까?</MudText>
    </DialogContent>
    <DialogActions>
        <MudButton OnClick="@Cancel">취소</MudButton>
        <MudButton Color="Color.Error" OnClick="@Confirm">삭제</MudButton>
    </DialogActions>
</MudDialog>

@code {
    [CascadingParameter] IMudDialogInstance? MudDialog { get; set; }

    void Cancel() => MudDialog?.Cancel();
    void Confirm() => MudDialog?.Close(DialogResult.Ok(true));
}
