#pragma once

#include "qml/installed-extensions-view-host.hpp"
#include "single-view-command-context.hpp"
#include <QCoreApplication>

class VicinaeListInstalledExtensionsCommand : public BuiltinViewCommand<InstalledExtensionsViewHost> {
  Q_DECLARE_TR_FUNCTIONS(VicinaeListInstalledExtensionsCommand)

  QString id() const override { return "list-extensions"; }
  QString name() const override { return tr("Show Installed Extensions"); }
  QString description() const override {
    return tr("Show all third-party extensions that have been installed. This includes local extensions as "
              "well as extensions downloaded from the stores (vicinae and raycast).");
  }
  ImageURL iconUrl() const override {
    auto icon = ImageURL::builtin(BuiltinIcon::Plug);
    icon.setBackgroundTint(Omnicast::ACCENT_COLOR);
    return icon;
  }
};
