import { notFound } from "next/navigation"; import Image from "next/image"; import { Header, Footer } from "@/components/Shell"; import { StartGame } from "@/components/StartGame"; import { getMap } from "@/lib/catalog"; export default async function ServerPage({ params, }: { params: Promise<{ id: string }>; }) { const { id } = await params; let map; try { map = await getMap(id); } catch { notFound(); } return ( <> {map.source === "plugin" ? "SERVER EXPORT" : "PLAYER CONTRIBUTION"} · MINECRAFT 1.21.11 {map.name} {map.description} {map.panorama_count} panoramas Overworld surface {map.bounds.maxX - map.bounds.minX} ×{" "} {map.bounds.maxZ - map.bounds.minZ} blocks > ); }
{map.description}