web: add fix map button

This commit is contained in:
Quaternions 2025-04-03 15:47:44 -07:00
parent a844c4e90a
commit 29c0acf3b2
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131

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