import { User, Bell } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Button } from "@/components/ui/button" import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover" import { Separator } from "@/components/ui/separator" import { auth } from "@/auth" import { ThemeToggle } from "@/components/custom/ThemeToggle" export const Header = async () => { const session = await auth() if (!session?.user) return null const notifications = [ { id: 1, title: "Coming soon!", description: "Notification support will be added shortly. Thanks for checking me out!", time: "now" } ] return (
{session.user.image || isNaN(Number(session.user.image)) ? ( ) : (
)}

{session.user.name}

LibreCloud User

Notifications

{notifications.length > 0 ? ( notifications.map((notification) => (
{notification.title}
{notification.time}

{notification.description}

)) ) : (
No new notifications
)}
) }