"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.IconUrl = void 0;
var _react = _interopRequireDefault(require("react"));
var _expValEquals = require("@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.default.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.default.createElement("rect", {
    x: "6",
    y: "15",
    width: "20",
    height: "2",
    rx: "1",
    fill: "currentColor"
  }));
};
var iconUrlStyle = {
  width: '24px',
  height: '24px'
};
var IconUrl = exports.IconUrl = function IconUrl(_ref2) {
  var label = _ref2.label;
  var style = (0, _expValEquals.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.default.createElement(IconUrlGlyph, {
    "aria-label": label
    // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
    ,
    style: style
  });
};