@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
45 lines (44 loc) • 1.6 kB
JavaScript
import React from 'react';
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
var IconUrlGlyph = function IconUrlGlyph(_ref) {
var ariaLabel = _ref['aria-label'],
style = _ref.style;
return /*#__PURE__*/React.createElement("svg", {
width: "32",
height: "32",
viewBox: "0 0 32 32",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
"aria-label": ariaLabel
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- style prop passed through from parent component
,
style: style
}, /*#__PURE__*/React.createElement("rect", {
x: "6",
y: "15",
width: "20",
height: "2",
rx: "1",
fill: "currentColor"
}));
};
var iconUrlStyle = {
width: '24px',
height: '24px'
};
export var IconUrl = function IconUrl(_ref2) {
var label = _ref2.label;
var style = expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? iconUrlStyle :
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
{
width: '24px',
height: '24px'
};
return /*#__PURE__*/React.createElement(IconUrlGlyph, {
"aria-label": label
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
,
style: style
});
};