web: add fix map button #79

Merged
Quaternions merged 1 commits from fix-map into staging 2025-04-03 22:51:22 +00:00

@ -2,13 +2,27 @@
import Webpage from "@/app/_components/webpage";
import { useParams } from "next/navigation";
import Link from "next/link";
interface Button {
name: string,
href: string,
}
function Button(button: Button) {
return (
<Link href={button.href}>
<button>{button.name}</button>
</Link>
)
}
export default function Map() {
const { mapId } = useParams<{mapId: string}>()
const { mapId } = useParams()
return (
<Webpage>
<p>map { mapId }</p>
<Button name="Submit A Mapfix For This Map" href={`/maps${mapId}/fix`}/>
</Webpage>
);
}