import Image from "next/image"; import { IMAGES } from "@/config/images"; import { Folder, Home, User } from "lucide-react"; import { LanguageSettings } from "./LanguageSettings"; import { auth } from "@/auth"; import { headers } from "next/headers"; import { getTranslations } from "next-intl/server"; import { GhostLightButton } from "@/design-system/base/button"; export async function Navbar() { const t = await getTranslations("navbar"); const session = await auth.api.getSession({ headers: await headers() }); return (
{t("title")}
GitHub {t("folders")} {t("sourceCode")} { (() => { return session && <> {t("profile")} || <> {t("sign_in")} ; })() }
); }