UNPKG

@glodon-aiot/react-components

Version:

aiot react components

22 lines (21 loc) 561 B
interface ZipFile { name: string; size: number; isDirectory: boolean; } interface ZipFileContent { name: string; blobUrl: string; type: string; } interface UseZipViewerResult { zipFiles: ZipFile[]; zipLoading: boolean; zipError: string | null; selectedZipFile: string | null; zipFileContent: ZipFileContent | null; handleFileClick: (fileName: string) => Promise<void>; setSelectedZipFile: (fileName: string | null) => void; } export declare const useZipViewer: (url: string) => UseZipViewerResult; export {};