'use strict';

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

const SUPPORTED_TAGS = ['important', 'positive', 'negative', 'warning'];
const emphasisHtmlTransformer = new EmphasisHtmlTransformer(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;
};

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