"use client"; import { Avatar, AvatarFallback } from "@app/components/ui/avatar"; import { Button } from "@app/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@app/components/ui/dropdown-menu"; import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, } from "@app/components/ui/select"; import Link from "next/link"; type HeaderProps = { name?: string; email: string; orgName: string; }; export default function Header({ email, orgName, name }: HeaderProps) { function getInitials() { if (name) { const [firstName, lastName] = name.split(" "); return `${firstName[0]}${lastName[0]}`; } return email.substring(0, 2).toUpperCase(); } return ( <>
{name && (

{name}

)}

{email}

Profile Log out
{name || email}
Documentation Support
); }