#pragma once

#include "lvgl.h"
#include <string>
#include <vector>

class EthSetting {
public:
    static EthSetting& instance();

    void show();
    void hide();
    bool isVisible();

private:
    EthSetting() = default;
    EthSetting(const EthSetting&) = delete;
    EthSetting& operator=(const EthSetting&) = delete;

    void createUI();

    static void onCloseClick(lv_event_t* e);

    lv_obj_t* overlay_ = nullptr;
    bool visible_ = false;
};
