'use client'; import Dragger from './Dragger'; import type { UploadProps } from './Upload'; import InternalUpload, { LIST_IGNORE } from './Upload'; export type { DraggerProps } from './Dragger'; export type { RcFile, UploadChangeParam, UploadFile, UploadListProps, UploadProps, } from './interface'; type InternalUploadType = typeof InternalUpload; type CompoundedComponent = InternalUploadType & { ( props: React.PropsWithChildren> & React.RefAttributes, ): React.ReactElement; Dragger: typeof Dragger; LIST_IGNORE: string; }; const Upload = InternalUpload as CompoundedComponent; Upload.Dragger = Dragger; Upload.LIST_IGNORE = LIST_IGNORE; export default Upload;