import { Navbar as NextUINavbar, NavbarContent, NavbarMenu, NavbarMenuToggle, NavbarBrand, NavbarItem, NavbarMenuItem, Chip, Link as NextUiLink, } from "@nextui-org/react"; import { MoveUpRight } from "lucide-react"; import { useTranslations } from "next-intl"; import { Link } from "@/src/navigation"; import { ThemeSwitch } from "@/components/theme-switch"; import { GithubIcon } from "@/components/icons"; import Image from "next/image"; import DropdownAccount from "./DropdownAccount"; import DropdownLanguage from "./DropdownLanguage"; export default function Header(params: { locale: string }) { const t = useTranslations("Header"); const messages = { account: t("account"), signUp: t("signup"), signIn: t("signin"), signOut: t("signout"), }; // Links shown Header or slider const commonLinks = [ { uid: "projects", href: "/projects", label: t("projects"), isExternal: false, }, { uid: "docs", href: "https://kimatata.github.io/TestPlat/docs/getstarted/selfhost", label: t("docs"), isExternal: true, }, ]; return ( Logo

TestPlat

1.0.0-alpha.6 {commonLinks.map((link) => link.isExternal ? ( } > {t("docs")} ) : ( {link.label} ) )}
{commonLinks.map((link) => link.isExternal ? ( } > {t("docs")} ) : ( {link.label} ) )}
); }