UNPKG

phx-react

Version:

PHX REACT

51 lines (50 loc) 1.36 kB
import React from 'react'; export declare enum EUploadType { TO_CDN = "to_cdn", TO_CLIENT = "to_client" } interface UploadCDN { title?: string; size?: 'small'; basePath: string; apiCdnUpload: string; handleListenUpload: any; helpText?: string; fileName: string; moduleId: string; projectId: string; multiImg?: boolean; defaultLink?: Array<any>; fileType?: 'excel' | 'image' | 'file'; headerActionFunc?(): void; titleHeaderAction?: string; isHeaderDownload?: boolean; inCard?: boolean; label?: string; oneImg?: boolean; setLoading?: any; contentOfModal?: any; isHorizontalLayout?: boolean; cdnUploadType?: 'avatar' | 'file'; customNextImage?: { height?: number; width?: number; }; actionTextDelete?: boolean; twoColumn?: boolean; hiddenWarnIcon?: boolean; disabled?: boolean; type?: 'to_cdn'; } interface IUploadFileToClient { type?: 'to_client'; fileType?: 'excel' | 'image' | 'file'; fileName: string; disabled?: boolean; helpText?: string; label?: string; handleFileChange(event: React.ChangeEvent<HTMLInputElement>): void; } export type PHXUploadFileProps = UploadCDN | IUploadFileToClient; export declare const PHXUploadFile: (props: PHXUploadFileProps) => React.JSX.Element; export {};