/* index.tsx generated by @compiled/babel-plugin v0.40.0 */
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 { getIframeSandboxAttribute } from '../../../../utils';
import { IFrame } from '../../../EmbedCard/components/IFrame';
const iframeCss = null;
const EmbedContent = ({
  isTrusted,
  name,
  src,
  testId,
  ariaLabel,
  extensionKey
}) => {
  const sandbox = getIframeSandboxAttribute(isTrusted);
  const props = {
    frameBorder: 0,
    name,
    sandbox,
    src,
    'data-testid': `${testId}-embed`
  };
  return /*#__PURE__*/React.createElement(IFrame, _extends({
    "aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : `${testId}-embed`,
    extensionKey: extensionKey
  }, props, {
    className: ax(["_1bsb1osq _4t3i815d"])
  }));
};
export default EmbedContent;