import { PrototypeSummary } from "@/lib/prototype"; interface PrototypeCardProps { prototype: PrototypeSummary; onDelete?: (id: string) => Promise; } export function PrototypeCard({ prototype, onDelete }: PrototypeCardProps) { return (
🧭

{prototype.name}

{prototype.description ? (

{prototype.description}

) : (

暂无描述

)}
上传时间:{new Date(prototype.createdAt).toLocaleString()}
查看原型 {onDelete ? ( ) : null}
); }