using Microsoft.AspNetCore.Components;
using MudBlazor;

namespace BackOffice.Pages.Products.Components;

public partial class ImagePreviewDialog
{
    [CascadingParameter] IMudDialogInstance MudDialog { get; set; } = default!;

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

    private void Close() => MudDialog.Close();
}

