import '../../../globals.js';
// Copyright 2022-2023, University of Colorado Boulder
/**
 * ReturnButton is a push button for undoing a previous operation.
 *
 * @author John Blanco
 * @author Chris Malley (PixelZoom, Inc.)
 */
import RectangularPushButton from '../../../sun/js/buttons/RectangularPushButton.js';
import sceneryPhet from '../../../scenery-phet/js/sceneryPhet.js';
import optionize from '../../../phet-core/js/optionize.js';
import ReturnIcon from '../ReturnIcon.js';
import PhetColorScheme from '../PhetColorScheme.js';
export default class ReturnButton extends RectangularPushButton {
    constructor(providedOptions) {
        const options = optionize()({
            // RectangularPushButtonOptions
            xMargin: 5,
            yMargin: 5,
            baseColor: PhetColorScheme.BUTTON_YELLOW
        }, providedOptions);
        options.content = new ReturnIcon(options.iconOptions);
        super(options);
    }
}
sceneryPhet.register('ReturnButton', ReturnButton);
//# sourceMappingURL=ReturnButton.js.map