import Image from "next/image"; import Link from "next/link"; import { ArrowUpRight, MapPin } from "lucide-react"; export type CardMap = { id: string; name: string; description: string; source: string; panorama_count: number; image?: string | null; credit?: string; server?: { name: string } | undefined; bounds: { minX: number; minZ: number; maxX: number; maxZ: number }; }; export function MapCard({ map, index = 0 }: { map: CardMap; index?: number }) { return (
{`${map.name} {map.source === "plugin" ? "SERVER EXPORT" : "PLAYER CAPTURE"} 0{index + 1}
{map.server?.name || "Overworld"}

{map.name}

{map.description}

{map.credit &&

By {map.credit}

}
{map.panorama_count} locations {map.bounds.maxX - map.bounds.minX} ×{" "} {map.bounds.maxZ - map.bounds.minZ} blocks
); }