export class CounterButton {
    count = 0;
    label;
    constructor(label = 'Counter') {
        this.label = label;
    }
    press() {
        this.count++;
    }
    unpress() {
        this.count--;
    }
    reset() {
        this.count = 0;
    }
    render() {
        return `[ ${this.label}: ${this.count} ]`;
    }
    toString() {
        return this.render();
    }
}
//# sourceMappingURL=counter-button.js.map