Add auth and theme switcher

This commit is contained in:
2025-07-04 18:53:15 +02:00
parent f3c92cdab6
commit a12a8e4e1b
13 changed files with 858 additions and 33 deletions

View File

@ -1,11 +1,18 @@
import { auth } from "@/auth";
import { SignInOutButton } from "../auth/SignInOutButton";
import ModeToggle from "./ModeToggle";
import TopNav from "./TopNav";
export default function Header() {
export default async function Header() {
const session = await auth()
return (
<div className="flex items-center justify-between">
<TopNav />
<ModeToggle />
<div className="flex items-center justify-between gap-4">
<SignInOutButton session={session} />
<ModeToggle />
</div>
</div>
);
}