export default class DyteControlBar {
    constructor() {
        this.buttons = [];
    }
    addButton(button) {
        const newButton = button;
        this.buttons.push(newButton);
        if (this._setButtons) {
            this._setButtons([...this.buttons]);
        }
        return this.buttons.length - 1;
    }
    removeButton(button) {
        this.buttons[button] = {};
        this._setButtons([...this.buttons]);
    }
}
//# sourceMappingURL=DyteControlBar.js.map