import '../../../../globals.js';
// Copyright 2019-2023, University of Colorado Boulder
/**
 * TwoColumnKeyboardHelpContentOptions handles layout of KeyboardHelpSections in 2 columns.
 *
 * @author Jesse Greenberg
 */
import optionize, { combineOptions } from '../../../../phet-core/js/optionize.js';
import { HBox, Node, VBox } from '../../../../scenery/js/imports.js';
import sceneryPhet from '../../sceneryPhet.js';
export default class TwoColumnKeyboardHelpContent extends Node {
    /**
     * @param leftSections - KeyboardHelpSections for the left column
     * @param rightSections -  KeyboardHelpSections for the right column
     * @param [providedOptions]
     */
    constructor(leftSections, rightSections, providedOptions) {
        const options = optionize()({
            columnSpacing: 40,
            sectionSpacing: 40
        }, providedOptions);
        const columnOptions = {
            align: 'left',
            spacing: options.sectionSpacing
        };
        const leftColumn = new VBox(combineOptions({
            children: leftSections
        }, columnOptions));
        const rightColumn = new VBox(combineOptions({
            children: rightSections
        }, columnOptions));
        const hBox = new HBox({
            children: [leftColumn, rightColumn],
            spacing: options.columnSpacing,
            align: 'top'
        });
        options.children = [hBox];
        super(options);
    }
}
sceneryPhet.register('TwoColumnKeyboardHelpContent', TwoColumnKeyboardHelpContent);
//# sourceMappingURL=TwoColumnKeyboardHelpContent.js.map