'use client'; import Image from 'next/image'; import { type Session } from 'next-auth'; import { signOut } from 'next-auth/react'; import { Button } from '@/components/ui/Buttons'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from '@/components/ui/DropdownMenus'; import { IconExternalLink } from '@/components/ui/Icon'; export interface UserMenuProps { user: Session['user']; } function getUserInitials(name: string) { const [firstName, lastName] = name.split(' '); return lastName ? `${firstName[0]}${lastName[0]}` : firstName.slice(0, 2); } export function UserMenu({ user }: UserMenuProps) { return (