import {notFound} from "next/navigation"; import {currentUser} from "@/auth/current-user"; 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 (
) }