migration

This commit is contained in:
Théo LAGACHE
2025-05-16 15:54:17 +02:00
parent 01019fe1a3
commit 6f2523e524
285 changed files with 15492 additions and 46090 deletions
+12 -13
View File
@@ -1,23 +1,22 @@
import {notFound} from "next/navigation";
import { notFound } from "next/navigation";
import {currentUser} from "@/auth/current-user";
import {SidebarTrigger} from "@/components/ui/sidebar";
import {ModeToggle} from "@/features/theme/ModeToggle";
import {LoggedInButton} from "@/components/wrappers/dashboard/loggedInButton/LoggedInButton";
import { SidebarTrigger } from "@/components/ui/sidebar";
import { ModeToggle } from "@/features/theme/ModeToggle";
import { LoggedInButton } from "@/components/wrappers/dashboard/loggedInButton/LoggedInButton";
import { currentUser } from "@/lib/auth/current-user";
export const Header = async () => {
const user = await currentUser()
const user = await currentUser();
if (!user) {
return notFound()
return notFound();
}
return (
<header className="flex h-16 shrink-0 items-center justify-between border-b px-4">
<SidebarTrigger className="-ml-1"/>
<SidebarTrigger className="-ml-1" />
<div className="flex items-center gap-2">
<ModeToggle/>
<LoggedInButton/>
<ModeToggle />
<LoggedInButton />
</div>
</header>
)
}
);
};