import React from 'react';
import { injectIntl, IntlProvider } from 'react-intl';
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
import { context } from '../../utils/analytics';
import { CardWithURLRenderer } from '../CardWithUrl/loader';
class PlainCard extends React.PureComponent {
  render() {
    const content = /*#__PURE__*/React.createElement(CardWithURLRenderer, this.props);
    return this.props.intl ? content : /*#__PURE__*/React.createElement(IntlProvider, {
      locale: "en"
    }, content);
  }
}
export const Card = withAnalyticsContext(context)(withAnalyticsEvents()(injectIntl(PlainCard, {
  enforceContext: false
})));