'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var EmphasisHtmlTransformer = require('./EmphasisHtmlTransformer.js');
var jsxRuntime = require('react/jsx-runtime');

const SUPPORTED_TAGS = ['important', 'positive', 'negative', 'warning'];
const emphasisHtmlTransformer = new EmphasisHtmlTransformer.default(SUPPORTED_TAGS);
const Emphasis = ({
  text = undefined
}) => {
  if (!text) {
    return null;
  }
  const transformedText = emphasisHtmlTransformer.transform(text);
  // eslint-disable-next-line react/no-danger
  return transformedText ? /*#__PURE__*/jsxRuntime.jsx("span", {
    dangerouslySetInnerHTML: {
      __html: transformedText
    }
  }) : null;
};

exports.default = Emphasis;
//# sourceMappingURL=Emphasis.js.map
