#pragma once

#include <QIcon>
#include <QJsonObject>

enum class TrayIconState {
    Logo,
    Issue,
    Disconnected,
    Connected,
    ConnectingA,
    ConnectingB,
    ExitNode,
    AsExitNode,
};

TrayIconState trayIconStateForSnapshot(const QJsonObject &snapshot, bool backendAvailable, bool spinnerPhase);
QIcon iconForTrayState(TrayIconState state);
