import Image from "next/image"; import { Button } from "./ui/button"; import { login } from "@/lib/user/actions"; import { getCurrentUser } from "@/lib/user"; 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 ? ( ) : (
) }
) }