export interface ExportInterface { dragProps: { onDrop: (e: any) => void; onDragEnter: (e: any) => void; onDragLeave: (e: any) => void; onDragOver: (e: any) => void; onDragStart: (e: any) => void; }; isDragging: boolean; onFileUpload: () => void; data: Array | undefined; file: File | null; error: boolean; } export interface Props { onRead: (data: Array) => void; value?: Array; children: (props: ExportInterface) => React.ReactNode; inputProps?: React.HTMLProps; onChange?: (file: File | null) => void; } export type ReadData = Record;