@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
28 lines (27 loc) • 989 B
JavaScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
import { jsx } from '@emotion/react';
import WarningIcon from '@atlaskit/icon/core/status-warning';
import Tooltip from '@atlaskit/tooltip';
import { Frame } from './frame';
import { IconWrapper } from './icon-wrapper';
export var InlineImageCardErrorView = function InlineImageCardErrorView(_ref) {
var _ref$testId = _ref.testId,
testId = _ref$testId === void 0 ? 'media-inline-image-card-error-view' : _ref$testId,
message = _ref.message,
icon = _ref.icon;
return jsx(Frame, {
testId: testId
}, jsx(Tooltip, {
content: message,
position: "top",
tag: "span",
hideTooltipOnClick: true
}, jsx(IconWrapper, null, icon || jsx(WarningIcon, {
label: "error",
color: "var(--ds-icon-danger, #C9372C)"
}))));
};