import Image from "next/image"; import { Button } from "./ui/button"; import login from "@/app/actions/login"; import { getCurrentUser } from "@/lib/user"; import logout from "@/app/actions/logout"; import Link from "next/link"; import { getNavLinks } from "@/lib/navlinks/repository"; export default async function Header() { const user = await getCurrentUser(); const links = await getNavLinks(); return (
Emblem of the European Federation

European Federation

{ links.map((link) => (

{link.label ?? link.page?.title}

)) }
{ user ? (
) : (
) }
) }