import wn from '../../../../../../node_modules/preact/compat/dist/compat.module.mjs';
import Column from '../atoms/Column.mjs';
import Divider from './Divider.mjs';

/**
 * Codifies simple button layout patterns
 * - For a single set of buttons, use children
 * - For buttons separated by dividers, use top and bottom props
 */ const ButtonColumn = (props)=>{
    if ('children' in props) {
        return /*#__PURE__*/ wn.createElement(Column, {
            gap: 2
        }, props.children);
    }
    return /*#__PURE__*/ wn.createElement(Column, {
        gap: 4
    }, props.top && // This is a bit odd but there are screens where there's nothing directly above the divider
    /*#__PURE__*/ wn.createElement(ButtonColumn, null, props.top), /*#__PURE__*/ wn.createElement(Divider, null), /*#__PURE__*/ wn.createElement(ButtonColumn, null, props.bottom));
};

export { ButtonColumn as default };
//# sourceMappingURL=ButtonColumn.mjs.map
