This commit is contained in:
PxlLoewe
2025-02-28 07:21:11 +01:00
6 changed files with 202 additions and 108 deletions

View File

@@ -16,11 +16,6 @@ export const VerticalNav = () => {
<HomeIcon /> Dashboard
</Link>
</li>
<li>
<Link href="/profile">
<PersonIcon /> Profile
</Link>
</li>
<li>
<Link href="/events">
<RocketIcon />

View File

@@ -1,22 +0,0 @@
"use client";
import { useSession } from "next-auth/react";
import Link from "next/link";
export const Header = () => {
const session = useSession();
return (
<header className="flex justify-between items-center p-4">
<h1 className="text-2xl font-bold">Hub</h1>
<div>
{session.status === "authenticated" ? (
<p>{session.data?.user.firstname}</p>
) : (
<Link href="/login">
<button className="btn">Login</button>
</Link>
)}
</div>
</header>
);
};