"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PHXUploadFile = exports.EUploadType = void 0;
const tslib_1 = require("tslib");
const FormUpload_1 = require("./FormUpload");
const UploadFile_1 = require("./UploadFile");
const react_1 = tslib_1.__importDefault(require("react"));
var EUploadType;
(function (EUploadType) {
    EUploadType["TO_CDN"] = "to_cdn";
    EUploadType["TO_CLIENT"] = "to_client";
})(EUploadType || (exports.EUploadType = EUploadType = {}));
const PHXUploadFile = (props) => {
    const { type } = props;
    if (type === EUploadType.TO_CLIENT) {
        return react_1.default.createElement(FormUpload_1.FormUpload, { ...props });
    }
    if (type === EUploadType.TO_CDN) {
        return react_1.default.createElement(UploadFile_1.UploadFile, { ...props });
    }
    return react_1.default.createElement(UploadFile_1.UploadFile, { ...props });
};
exports.PHXUploadFile = PHXUploadFile;
//# sourceMappingURL=PHXUploadFile.js.map