import React from "react"; import { DownloadState } from "@/_models/DownloadState"; import { formatDownloadPercentage, formatDownloadSpeed, toGigabytes, } from "@/_utils/converter"; type Props = { downloadState: DownloadState; }; const ModelDownloadingRow: React.FC = ({ downloadState }) => ( {downloadState.fileName} {toGigabytes(downloadState.size.transferred)} {toGigabytes(downloadState.size.total)} {formatDownloadPercentage(downloadState.percent)} {formatDownloadSpeed(downloadState.speed)} ); export default ModelDownloadingRow;