using DocumentFormat.OpenXml.Packaging;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.AspNetCore.Mvc.Routing;
using Nop.Services.Cms;
using Nop.Services.Configuration;
using Nop.Services.Localization;
using Nop.Services.Plugins;
using Nop.Services.Security;
using Nop.Web.Framework.Infrastructure;
using Nop.Web.Framework.Menu;

namespace Nop.Plugin.Misc.MangoCore;

/// <summary>
/// Rename this file and change to the correct type
/// </summary>
public class MangoCorePlugin : BasePlugin
{
    protected readonly IActionContextAccessor _actionContextAccessor;
    private readonly ISettingService _settingService;
    //private readonly IWebHelper _webHelper;
    protected readonly IPermissionService _permissionService;
    protected readonly ILocalizationService _localizationService;
    protected readonly IUrlHelperFactory _urlHelperFactory;
    private readonly IAdminMenu _adminMenu;

    //handle AdminMenuCreatedEvent


    public MangoCorePlugin(IActionContextAccessor actionContextAccessor,
        ISettingService settingService,
        //IWebHelper webHelper,
        ILocalizationService localizationService,
    IPermissionService permissionService,
    IUrlHelperFactory urlHelperFactory,
    IAdminMenu adminMenu)
    {
        _actionContextAccessor = actionContextAccessor;
        _settingService = settingService;
        //_webHelper = webHelper;
        _localizationService = localizationService;
        _urlHelperFactory = urlHelperFactory;
        _adminMenu = adminMenu;
        _permissionService = permissionService;
    }

    // --- INSTALL ---
    public override async Task InstallAsync()
    {

        await base.InstallAsync();
    }

    // --- UNINSTALL ---
    public override async Task UninstallAsync()
    {        
        await base.UninstallAsync();
    }

}