/*!
 * KoliBri - The accessible HTML-Standard
 */
'use strict';

var tslib_es6 = require('./tslib.es6-Cm0ytgPY.js');
var index = require('./index-DBbl8tEq.js');
var bemRegistry = require('./bem-registry-D9uDM1GJ.js');
var clsx = require('./clsx-Bm_HQUnh.js');

const iconBem = bemRegistry.bem.forBlock('kol-icon');
const BEM_CLASS_ICON = iconBem();
const BEM_CLASS_ICON__ICON = iconBem('icon');
const IconFC = (_a) => {
    var { class: classNames, icons, label } = _a, htmlAttributes = tslib_es6.__rest(_a, ["class", "icons", "label"]);
    const hasAriaLabel = (label === null || label === void 0 ? void 0 : label.length) > 0;
    return (index.h("i", Object.assign({}, htmlAttributes, { "aria-hidden": hasAriaLabel ? undefined : 'true', "aria-label": hasAriaLabel ? label : undefined, class: clsx.clsx(BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, icons, classNames), role: hasAriaLabel ? 'img' : 'presentation' })));
};

exports.IconFC = IconFC;
//# sourceMappingURL=component-C1vBQDN-.js.map

//# sourceMappingURL=component-C1vBQDN-.js.map