#ifndef INDEPENDENTCHATWINDOW_H
#define INDEPENDENTCHATWINDOW_H

#include "widgets/framelessbase.h"
#include "network/websocketclient.h"

class ChatWindow;
class QVBoxLayout;

class IndependentChatWindow : public TWidget
{
    Q_OBJECT
public:
    explicit IndependentChatWindow(WebSocketClient *webSocketClient, QWidget *parent = nullptr);
    ~IndependentChatWindow() override;

    void initWebsocket(const QString &roomId);
    ChatWindow* getChatWindow() const { return m_chatWindow; }

private:
    void setupUI();
    void setupTitleBar();
    
    ChatWindow *m_chatWindow;
    WebSocketClient *m_webSocketClient;
};

#endif // INDEPENDENTCHATWINDOW_H