import Link from "next/link"; import { ReactElement } from "react"; import { HrefButton } from "./href-button"; import Logo from "./logo"; import { ToggleThemeButton } from "./theme-toggle-button"; type Page = { /** * The name of the button for the navbar. */ name: string; /** * The URL to go to. */ url: string; /** * Whether clicking the button will * open the link in a new tab. */ openInNewTab?: boolean; }; const pages: Page[] = [ { name: "Player", url: "/player" }, { name: "Server", url: "/server/java" }, { name: "Mojang", url: "/mojang/status" }, { name: "API", url: "https://api.mcutils.xyz", openInNewTab: true }, ]; export default function NavBar(): ReactElement { return (

Minecraft Utilities

{pages.map((page, index) => { return ; })}
); }