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

#pragma once

namespace dragonx {

class App;

namespace ui {

/**
 * @brief Render the Chat tab (read-only HushChat conversation view — Phase 3).
 *
 * A two-pane view: a conversation list on the left and the selected thread on
 * the right, both read from the App-owned ChatService store (App::chatService()).
 * Peer z-addresses are resolved to contact names via the address book when known.
 * Read-only for now — composing/sending arrives in a later phase. The tab is only
 * reachable when built with DRAGONX_ENABLE_CHAT (gated via WalletUiSurface::Chat).
 *
 * @param app Pointer to the app instance.
 */
void RenderChatTab(App* app);

} // namespace ui
} // namespace dragonx
