import { FormUpload } from './FormUpload';
import { UploadFile } from './UploadFile';
import React from 'react';
export var EUploadType;
(function (EUploadType) {
    EUploadType["TO_CDN"] = "to_cdn";
    EUploadType["TO_CLIENT"] = "to_client";
})(EUploadType || (EUploadType = {}));
export const PHXUploadFile = (props) => {
    const { type } = props;
    if (type === EUploadType.TO_CLIENT) {
        return React.createElement(FormUpload, { ...props });
    }
    if (type === EUploadType.TO_CDN) {
        return React.createElement(UploadFile, { ...props });
    }
    return React.createElement(UploadFile, { ...props });
};
//# sourceMappingURL=PHXUploadFile.js.map