"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _icons = require("@wii/icons");
var _upload = _interopRequireDefault(require("../upload"));
var _jsxRuntime = require("react/jsx-runtime");
const LogoUpload = props => {
  var _props$fileList;
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_upload.default, {
    ...props,
    accept: "image/*",
    beforeUpload: () => false,
    maxCount: 1,
    listType: "picture-card",
    showUploadList: {
      // showRemoveIcon: false,
      // showDownloadIcon: false,
      showPreviewIcon: false
    },
    children: !((_props$fileList = props.fileList) !== null && _props$fileList !== void 0 && _props$fileList.length) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PlusOutlined, {
      style: {
        fontSize: 24
      }
    }) : null
  });
};
var _default = LogoUpload;
exports.default = _default;