Working on style and color on the side bar, and the items buttons.

This commit is contained in:
charles-gauthereau
2024-11-10 11:01:59 +01:00
parent ce0265bd8c
commit 84030dcba0
11 changed files with 278 additions and 72 deletions
+27
View File
@@ -0,0 +1,27 @@
import Image from "next/image"
import {Layout} from "@/components/layout";
import Link from "next/link";
import {Badge} from "@/components/ui/badge";
import {currentUser} from "@/auth/current-user";
import {notFound} from "next/navigation";
import {buttonVariants} from "@/components/ui/button";
import {LoggedInButton} from "@/components/wrappers/Dashboard/LoggedInButton/LoggedInButton";
import {SidebarTrigger} from "@/components/ui/sidebar";
import {ModeToggle} from "@/features/theme/ModeToggle";
export const Header = async () => {
const user = await currentUser()
if (!user) {
return notFound()
}
return (
<header className="flex h-16 shrink-0 items-center justify-between border-b px-4">
<SidebarTrigger className="-ml-1"/>
<div className="flex items-center gap-2">
<ModeToggle/>
<LoggedInButton/>
</div>
</header>
)
}