import { jsx as _jsx } from "react/jsx-runtime";
import { createElement as _createElement } from "react";
import { block } from "../../utils/index.js";
import Link from "../Link/Link.js";
import './Links.css';
const b = block('links');
function getLinkSize(size) {
    switch (size) {
        case 's':
            return 'm';
        case 'l':
        default:
            return 'l';
    }
}
const Links = ({ className, titleId, links, size = 's', qa, linkQa }) => links ? (_jsx("div", { className: b({ size }, className), "data-qa": qa, children: links?.map((link) => (_createElement(Link, { className: b('link'), ...link, textSize: getLinkSize(size), key: link.url, qa: linkQa, extraProps: {
            'aria-describedby': link.urlTitle ? undefined : titleId,
            ...link.extraProps,
        } }))) })) : null;
export default Links;
//# sourceMappingURL=Links.js.map
