<MudDialog class="overflow-y-hidden overflow-x-hidden">
    <DialogContent>
        <MudStack class=" pt-8 py-8 -mb-3 w-full">
            <MudText Typo="Typo.h5" class="font-bold" Align="Align.Center">@ContentText</MudText>
            <dotlottie-player src="https://lottie.host/ca020ceb-7c2d-446f-bab7-172289c31a45/ygESvTvwHy.json"
                              background="transparent" speed="1" class="mx-auto mt-4 w-40 h-40 lg:w-60 lg:h-60" loop autoplay />
            </MudStack>
        </DialogContent>
        <DialogActions>
            <MudGrid class="p-2">
                <MudItem lg="6">
                    <MudButton class="w-full py-3 font-bold" Color="Color.Info" Variant="Variant.Filled" OnClick="Submit" DisableElevation="true">تایید</MudButton>
                </MudItem>

                <MudItem lg="6">
                    <MudButton class="w-full py-3 font-bold" Variant="Variant.Outlined" Color="Color.Error" OnClick="Cancel">انصراف</MudButton>
                </MudItem>
            </MudGrid>
        </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();
}