using Microsoft.AspNetCore.Mvc;
using Nop.Plugin.Misc.FruitBankPlugin.Areas.Admin.Models;

namespace Nop.Plugin.Misc.FruitBankPlugin.Areas.Admin.Components
{
    [ViewComponent(Name = "ShippingDocumentGridComponent")]
    public class ShippingDocumentGridComponent : ViewComponent
    {
        public async Task<IViewComponentResult> InvokeAsync(TestGridModel model)
        {
            // Here you can fetch data for this grid if needed
            // For demo, just pass the model
            return View(model.ViewComponentName +".cshtml", model);
        }
    }
}
