import { Stats } from "@/app/components/stats"; import Link from "next/link"; import { ReactElement } from "react"; import { Button } from "../components/ui/button"; import { Separator } from "../components/ui/separator"; import { Tooltip, TooltipContent, TooltipTrigger } from "../components/ui/tooltip"; type Button = { /** * The title of the button. */ title: string; /** * The tooltip to display for this statistic. */ tooltip: string; /** * The URL to go to. */ url: string; /** * Whether clicking the button will * open the link in a new tab. */ openInNewTab?: boolean; }; const buttons: Button[] = [ { title: "Get Started", tooltip: "Click to view get started!", url: "/player", }, { title: "Postman Collection", tooltip: "Click to view the Postman Collection", url: "https://www.postman.com/imfascinated/workspace/minecraft-utilities", openInNewTab: true, }, { title: "Documentation", tooltip: "Click to open the documentation", url: "https://api.mcutils.xyz/swagger-ui.html", openInNewTab: true, }, ]; export default function Home(): ReactElement { return (

Minecraft Utilities

Minecraft Utilities offers you many endpoints to get information about a minecraft server or a player.

We offer you a simple and easy to use API.

{buttons.map((button, index) => { return (

{button.tooltip}

); })}

API Statistics

View the statistics for the API in real-time!

); }