import '../../../globals.js';
import optionize from '../../../phet-core/js/optionize.js';
import Tandem from '../../../tandem/js/Tandem.js';
import BooleanToggleNode from '../BooleanToggleNode.js';
import sun from '../sun.js';
import RectangularToggleButton from './RectangularToggleButton.js';
export default class BooleanRectangularToggleButton extends RectangularToggleButton {
    /**
     * @param booleanProperty
     * @param trueNode - shown when booleanProperty is true
     * @param falseNode - shown when booleanProperty is false
     * @param providedOptions?
     */
    constructor(booleanProperty, trueNode, falseNode, providedOptions) {
        const content = new BooleanToggleNode(booleanProperty, trueNode, falseNode);
        const options = optionize()({
            content: content,
            tandem: Tandem.REQUIRED
        }, providedOptions);
        super(booleanProperty, false, true, options);
        this.disposeBooleanRectangularToggleButton = () => {
            content.dispose();
        };
    }
    dispose() {
        this.disposeBooleanRectangularToggleButton();
        super.dispose();
    }
}
sun.register('BooleanRectangularToggleButton', BooleanRectangularToggleButton);
//# sourceMappingURL=BooleanRectangularToggleButton.js.map