"use strict";var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;exports.__esModule = true;exports.UploadIcon = void 0;var _react = _interopRequireWildcard(require("react"));



var _ThemeContext = require("../../lib/theming/ThemeContext");
var _ThemeHelpers = require("../../lib/theming/ThemeHelpers");

var _TileUploadIcon = require("./icons/TileUploadIcon");
var _RowUploadIcon = require("./icons/RowUploadIcon");
var _UploadIcon = require("./icons/UploadIcon");






var UploadIcon = exports.UploadIcon = function UploadIcon(props) {
  var theme = (0, _react.useContext)(_ThemeContext.ThemeContext);
  var versionGTE5_5 = (0, _ThemeHelpers.isThemeGTE)(theme, '5.5');

  var size = props.size,_props$view = props.view,view = _props$view === void 0 ? 'row' : _props$view;
  if (versionGTE5_5) {
    return view === 'row' ? /*#__PURE__*/_react.default.createElement(_RowUploadIcon.UploadIcon, { size: size }) : /*#__PURE__*/_react.default.createElement(_TileUploadIcon.UploadIcon, { size: size });
  }

  return /*#__PURE__*/_react.default.createElement(_UploadIcon.UploadIcon, { size: size });
};