"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const utils_1 = require("../../utils/index.js");
const Button_1 = tslib_1.__importDefault(require("../Button/Button.js"));
const b = (0, utils_1.block)('buttons');
function getButtonSize(size) {
    switch (size) {
        case 's':
            return 'm';
        case 'l':
        default:
            return 'xl';
    }
}
const Buttons = ({ className, titleId, buttons, size = 's', qa, buttonQa, }) => buttons ? ((0, jsx_runtime_1.jsx)("div", { className: b({ size }, className), "data-qa": qa, children: buttons.map((item) => ((0, react_1.createElement)(Button_1.default, { className: b('button'), ...item, key: item.url, size: getButtonSize(size), qa: buttonQa, extraProps: {
            'aria-describedby': item.urlTitle ? undefined : titleId,
            ...item.extraProps,
        } }))) })) : null;
exports.default = Buttons;
//# sourceMappingURL=Buttons.js.map
