'use client'; import { formatFileSize, formatDateTime } from '@/lib/utils'; interface Apk { name: string; commit: string | null; size: number; modifiedAt: string; downloadUrl: string; } interface ApkTableProps { apks: Apk[]; } export default function ApkTable({ apks }: ApkTableProps) { if (!apks || apks.length === 0) { return (

暂无 APK 文件

); } return (
{apks.map((apk) => ( ))}
Commit ID 文件大小 创建时间 操作
{apk.commit || '-'} {formatFileSize(apk.size)} {formatDateTime(new Date(apk.modifiedAt))} 下载
); }