/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
import "./index.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import Markdown from 'markdown-to-jsx';
import { fg } from '@atlaskit/platform-feature-flags';
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
import UList from './ulist';
const baseStyle = null;
const textStyleNew = null;
const textStyleOld = null;

/**
 * A component to render a response from AI in markdown text.
 * @internal
 * @param {AISummaryProps} AISummaryProps
 */
const AISummary = ({
  content = '',
  className,
  testId = 'ai-summary',
  minHeight = 0
}) => {
  if (!content && minHeight === 0) {
    return null;
  }
  const is3pExperimentEnabled =
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
  fg('platform_sl_3p_auth_rovo_action_kill_switch') && expValEqualsNoExposure('platform_sl_3p_auth_rovo_action', 'isEnabled', true);
  return /*#__PURE__*/React.createElement(Markdown, {
    "data-testid": testId
    // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
    ,
    className: ax(["_11c8wadc _slp31hna _1nmz1hna _o5724jg8 _181u1kdv _1rkw1kdv _te171kdv _uizt1kdv", is3pExperimentEnabled ? "_syazi7uo" : "_syazazsu", className]),
    children: content,
    options: {
      forceWrapper: true,
      overrides: {
        ul: UList
      },
      disableParsingRawHTML: true
    },
    style: {
      minHeight: minHeight
    }
  });
};
export default AISummary;