// DragonX Wallet - ImGui Edition
// Copyright 2024-2026 The Hush Developers
// Released under the GPLv3

#pragma once

#include <string>

namespace dragonx {
class App;

namespace ui {

/**
 * @brief Dialog for generating payment requests with QR codes
 */
class RequestPaymentDialog {
public:
    /**
     * @brief Show the request payment dialog
     * @param address Pre-fill with this address (optional)
     */
    static void show(const std::string& address = "");

    /**
     * @brief Render the dialog (call each frame)
     */
    static void render(App* app);

    /**
     * @brief Close the dialog + free its QR texture (used by the UI sweep teardown)
     */
    static void hide();
};

} // namespace ui
} // namespace dragonx
