"use client" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { User } from "@/lib/types" import { LogOut, Pencil } from "lucide-react" export default function UserButton({ userData }: { userData: User }) { if (!userData) return null return (
{userData.name .split(" ") .slice(0, 2) .map((name) => name[0].toUpperCase())}
Edit Profile {/* open modal with name and email (disabled) */} Log Out
) }