"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class ToggleButton {
    onInput(input) {
        this.state = { pressed: !!input.pressed };
    }
    handleClick(ev) {
        this.state.pressed = !this.state.pressed;
        this.emit("toggle", {
            originalEvent: ev,
            pressed: this.state.pressed,
        });
    }
}
module.exports = ToggleButton;
