From 9255c40288c97fb450b769a9930a3ff507b3a531 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 18 Apr 2024 01:45:27 +0100 Subject: [PATCH] add api button in the navbar --- src/app/components/navbar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx index a698d15..fbd495b 100644 --- a/src/app/components/navbar.tsx +++ b/src/app/components/navbar.tsx @@ -6,12 +6,14 @@ import { ToggleThemeButton } from "./theme-toggle-button"; type Page = { title: string; url: string; + openInNewTab?: boolean; }; const pages: Page[] = [ { title: "Player", url: "/player" }, { title: "Server", url: "/server/java" }, { title: "Mojang", url: "/mojang/status" }, + { title: "API", url: "https://api.mcutils.xyz", openInNewTab: true }, ]; export default function NavBar(): JSX.Element { @@ -22,7 +24,7 @@ export default function NavBar(): JSX.Element {

Minecraft Utilities

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