import type { LinkItemType } from "fumadocs-ui/layouts/shared"; import { ExternalLinkIcon } from "lucide-react"; import { useTranslation } from "react-i18next"; import { LanguageSwitcher } from "@/components/language-switcher"; import { env } from "@/config"; type NavLabelKey = "MemShellGenerator" | "ProbeShellGenerator" | "documents" | "about"; function NavLabel({ translationKey }: { translationKey: NavLabelKey }) { const { t } = useTranslation("common"); return t(translationKey); } const basePath = env.BASE_PATH?.replace(/^\/+|\/+$/g, "") ?? ""; const docsUrl = `/${basePath ? `${basePath}/` : ""}docs`; export const siteConfig = { name: "MemShellParty", url: "https://party.memshell.news", github: "https://github.com/ReaJason/MemShellParty", latestRelease: "https://github.com/ReaJason/MemShellParty/releases/latest", author: "ReaJason", authorGithub: "https://github.com/ReaJason", authorIntro: "Java RASP Developer", blog: "https://reajason.eu.org", navLinks: [ { text: , url: "/memshell", }, { text: , url: "/probeshell", }, { text: ( ), url: docsUrl, external: true, }, { text: , url: "/about", }, { type: "custom", children: , secondary: true, }, ] as LinkItemType[], };