/*!
 * KoliBri - The accessible HTML-Standard
 */
import { __rest } from "tslib";
import { h } from "@stencil/core";
import { bem } from "../../../schema/bem-registry";
import clsx from "../../../utils/clsx";
const iconBem = bem.forBlock('kol-icon');
const BEM_CLASS_ICON = iconBem();
const BEM_CLASS_ICON__ICON = iconBem('icon');
export const IconFC = (_a) => {
    var { class: classNames, icons, label } = _a, htmlAttributes = __rest(_a, ["class", "icons", "label"]);
    const hasAriaLabel = (label === null || label === void 0 ? void 0 : label.length) > 0;
    return (h("i", Object.assign({}, htmlAttributes, { "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? label : undefined, class: clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames), role: hasAriaLabel ? 'img' : 'presentation' })));
};
//# sourceMappingURL=component.js.map
