<MudDialog>
    <DialogContent>
        <p>@ContentText</p>
    </DialogContent>
    <DialogActions>
        <div class="flex flex-row w-full mt-3">
            <MudButton Color="Color.Info" Variant="Variant.Filled" OnClick="Submit" DisableElevation="true">تایید</MudButton>

            <MudButton Variant="Variant.Outlined" Color="Color.Error" OnClick="Cancel" class="mx-4">انصراف</MudButton>
        </div>
    </DialogActions>
</MudDialog>
@code
{

    [CascadingParameter]
    MudDialogInstance? MudDialog { get; set; }

    [Parameter]
    public string ContentText { get; set; } = string.Empty;

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