import Image from "next/image"; import { Github, Server } from "lucide-react"; interface Server { name: string; description: string; version_type: string; version_range?: string; image?: string; links?: { downloads?: string[]; "icon-GitHub"?: string; "icon-jenkins"?: string; }; } interface ServerProps { server: Server; theme: string; } export default function ServerCard({ server, theme }: ServerProps) { return (
{server.name}

{server.name}

{server.version_type}

{server.description}

版本范围: {server.version_range || "无"}

{Array.isArray(server.links?.downloads) && server.links.downloads.length > 0 ? ( server.links.downloads.map((link, index) => ( 下载 {index + 1} )) ) : (

暂无下载链接

)}
{server.links?.["icon-GitHub"] && ( )} {server.links?.["icon-jenkins"] && ( )}
); }