// SPDX-FileCopyrightText: 2010-2026 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
// SPDX-License-Identifier: BSD-2-Clause

import {gettext as _} from 'resource:///org/gnome/shell/extensions/extension.js';

import GObject from 'gi://GObject';
import St from 'gi://St';

export const GPasteActionButtonActor = GObject.registerClass(
class GPasteActionButtonActor extends St.BoxLayout {
    constructor(iconName, label) {
        super({style: 'spacing: 10px;'});

        this.add_child(new St.Icon({
            icon_name: iconName,
            style_class: 'popup-menu-icon',
        }));

        this.add_child(new St.Bin({
            child: new St.Label({text: label}),
        }));
    }
});
