import LoginIcon from './icons/login-icon';
import { UserModel } from '@/lib/feature/user/user.model';
import EmptyProfileIcon from '@/ui/components/internal/user-profile/icons/empty-profile-icon';
import { UserManagmentPopover } from '@/ui/components/internal/user-profile/popover/user-manage';
import {
Avatar,
AvatarFallback,
AvatarImage,
} from '@/ui/components/shadcn/avatar';
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@/ui/components/shadcn/popover';
import { SignInButton } from '@clerk/nextjs';
const genInitials = (name: string | null) => {
if (!name) {
return 'US';
}
return name.match(/(\b\S)?/g)?.join('') || '';
};
export const UserButton = ({ user }: { user: UserModel }) => {
const userName = user.name || 'PlaceHolder';
return (
<>
{genInitials(userName)}
>
);
};
export const BlankUserButton = () => {
return (
<>
<>
>
>
);
};