| 2 | import { formatBytes, getCompatibilityBadge, formatSpeed, formatETA } from '../lib/utils'; |
| 3 | |
| 4 | interface HfModelFileItemProps { |
| 5 | file: HfModelFile; |
| 6 | hardwareInfo: HardwareInfo | null; |
| 7 | onDownload: () => void; |
| 8 | downloadProgress?: HfDownloadProgress; |
| 9 | isInstalled?: boolean; |
| 10 | } |
| 11 | |
| 12 | export function HfModelFileItem({ file, hardwareInfo, onDownload, downloadProgress, isInstalled = false }: HfModelFileItemProps) { |
| 13 | const isDownloading = !!downloadProgress; |
nothing calls this directly
no outgoing calls
no test coverage detected