/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
import _extends from "@babel/runtime/helpers/extends";
import "./index.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { di } from 'react-magnetic-di';
import { fg } from '@atlaskit/platform-feature-flags';
import { getIframeSandboxAttribute } from '../../../../utils';
import { IFrame } from '../../../EmbedCard/components/IFrame';
var iframeCss = null;
var EmbedContent = function EmbedContent(_ref) {
  var isTrusted = _ref.isTrusted,
    name = _ref.name,
    src = _ref.src,
    testId = _ref.testId,
    ariaLabel = _ref.ariaLabel,
    extensionKey = _ref.extensionKey;
  var sandbox = getIframeSandboxAttribute(isTrusted);
  var props = {
    frameBorder: 0,
    name: name,
    sandbox: sandbox,
    src: src,
    'data-testid': "".concat(testId, "-embed")
  };
  return /*#__PURE__*/React.createElement(IFrame, _extends({
    "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : "".concat(testId, "-embed")
  }, fg('platform_deprecate_lp_cc_embed') ? {
    extensionKey: extensionKey
  } : {}, props, {
    className: ax(["_1bsb1osq _4t3i815d"])
  }));
};
export default EmbedContent;