#ifndef DELETE_USER_CONFIRM_PANEL_H
#define DELETE_USER_CONFIRM_PANEL_H

#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QString>
#include "../PanelBase/overlay-panel-base.h"
#include "../DialogButton/dialog-button.h"

class DeleteUserConfirmPanel : public OverlayPanelBase {
    Q_OBJECT
public:
    explicit DeleteUserConfirmPanel(const QString &username, QWidget *parent = nullptr);
    QString username() const { return m_user; }
    // Show a warning message in reserved inline space (e.g. irreversible action)
    void showWarning(const QString &text) { showInlineError(text); }
    void clearWarning() { hideInlineError(); }
signals:
    void cancelRequested();
    void deleteConfirmed(const QString &username);
private:
    QString m_user;
};

#endif // DELETE_USER_CONFIRM_PANEL_H
