"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const utils_1 = require("../../utils/index.js");
const HTML = ({ children, block = false, className, itemProp, id, qa, }) => {
    if (!children) {
        return null;
    }
    return React.createElement(block || (0, utils_1.hasBlockTag)(children) ? 'div' : 'span', {
        dangerouslySetInnerHTML: { __html: children },
        className,
        itemProp,
        id,
        'data-qa': qa,
    });
};
exports.default = HTML;
//# sourceMappingURL=HTML.js.map
