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

#pragma once

#include "../../data/wallet_state.h"
#include "../material/draw_helpers.h"  // GlassPanelSpec
#include "imgui.h"

namespace dragonx {
namespace ui {

// Renders the mining "Hashrate + Stats" card (stat values on top, hashrate chart or live log
// below). Extracted verbatim from the monolithic mining tab; the immediate-mode layout context is
// passed in so the rendering flows in sequence exactly as before. `poolMode` is the parent's
// solo/pool toggle.
void RenderMiningStats(const WalletState& state, const MiningInfo& mining,
                       ImDrawList* dl, ImFont* capFont, ImFont* sub1, ImFont* ovFont,
                       float dp, float vs, float gap, float pad, float availWidth,
                       const material::GlassPanelSpec& glassSpec, float chartBudgetH, bool poolMode);

} // namespace ui
} // namespace dragonx
