import SimpleTag, { TagType } from "../SimpleTag"; import PrimaryButton from "../PrimaryButton"; import { formatDownloadPercentage, toGigabytes } from "@/_utils/converter"; import { DownloadState } from "@/_models/DownloadState"; import SecondaryButton from "../SecondaryButton"; type Props = { name: string; total: number; status: TagType; downloadState?: DownloadState; onDownloadClick?: () => void; }; const ExploreModelItemHeader: React.FC = ({ name, status, total, downloadState, onDownloadClick, }) => (
{name}
{downloadState != null ? ( {}} /> ) : ( onDownloadClick?.()} /> )}
); export default ExploreModelItemHeader;