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

#pragma once

#include "../../data/wallet_state.h"
#include "imgui.h"

namespace dragonx {
class App;
namespace ui {

// Renders the mining "Mode toggle" (SOLO | POOL segmented control + pool URL/worker inputs).
// Extracted verbatim from the monolithic mining tab. The state it mutates is passed BY REFERENCE:
// the pool-mode flag, the pool URL / worker text buffers, and the settings-dirty flag (named with
// their original identifiers so the moved body is byte-identical).
void RenderMiningModeToggle(App* app, const WalletState& state, const MiningInfo& mining,
                            ImDrawList* dl, ImFont* capFont, ImFont* ovFont,
                            float dp, float hs, float gap, float availWidth,
                            bool& s_pool_mode, char (&s_pool_url)[256], char (&s_pool_worker)[256],
                            bool& s_pool_settings_dirty);

} // namespace ui
} // namespace dragonx
