import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2024-2025 GoodData Corporation
import { b } from "./iconBem.js";
import { iconPaths } from "./icons.js";
import { UiIconBackground } from "./UiIconBackground.js";
/**
 * @internal
 */
export function UiIcon({ type, label, color, layout = "inline", ariaHidden, size = 20, backgroundSize, backgroundColor, backgroundType, backgroundShape, }) {
    return (_jsx(UiIconBackground, { size: backgroundSize, color: backgroundColor, type: backgroundType, shape: backgroundShape, children: _jsxs("svg", { className: b({ color, layout }), width: size, height: size, viewBox: "0 0 20 20", "aria-hidden": ariaHidden, children: [label ? _jsx("title", { children: label }) : null, iconPaths[type]] }) }));
}
//# sourceMappingURL=UiIcon.js.map