<MudDialog class="overflow-y-hidden overflow-x-hidden">
    <DialogContent>
        <MudStack class=" pt-8 py-8 -mb-4 w-full">
            <MudText Typo="Typo.h5" class="font-bold" Align="Align.Center">لطفا کد رهگیری ارسال را وارد کنید</MudText>
            
            <MudTextField class="mt-3" Variant="Variant.Outlined" T="string" Label="کد رهگیری" @bind-Value="@TrackingCode"></MudTextField>
        </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; }

    public string TrackingCode { get; set; } = string.Empty;

    void Submit()
    {
        if (TrackingCode.IsNullOrEmpty())
        {
            return;
        }
        MudDialog?.Close(DialogResult.Ok(TrackingCode));
    }
    void Cancel() => MudDialog?.Cancel();
}