const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _ant_design_icons = require("@ant-design/icons");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/pisellUpload/index.tsx
const { Dragger } = antd.Upload;
const PisellUpload = (props) => {
	const { title, text1, text2, uploadType } = props;
	(0, react.useEffect)(() => {
		document.body.id = "body";
	}, []);
	if (uploadType === "custom") return /* @__PURE__ */ react.default.createElement(antd.Upload, props, props.children);
	return /* @__PURE__ */ react.default.createElement("div", null, uploadType === "button" ? /* @__PURE__ */ react.default.createElement(antd.Upload, props, /* @__PURE__ */ react.default.createElement(antd.Button, { icon: /* @__PURE__ */ react.default.createElement(_ant_design_icons.UploadOutlined, null) }, "Upload")) : /* @__PURE__ */ react.default.createElement(Dragger, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, { className: (0, classnames.default)("pisell-upload-wapper") }), /* @__PURE__ */ react.default.createElement("p", { className: "ant-upload-drag-icon" }, /* @__PURE__ */ react.default.createElement(_ant_design_icons.InboxOutlined, null)), /* @__PURE__ */ react.default.createElement("p", { className: "ant-upload-title" }, title), /* @__PURE__ */ react.default.createElement("p", { className: "ant-upload-text1" }, text1), /* @__PURE__ */ react.default.createElement("p", { className: "ant-upload-text2" }, text2)));
};
//#endregion
exports.default = PisellUpload;
