"use client"; import { Button } from "@app/components/ui/button"; import { Avatar, AvatarFallback } from "@app/components/ui/avatar"; type UserProfileCardProps = { identifier: string; description?: string; onUseDifferentAccount?: () => void; useDifferentAccountText?: string; }; export default function UserProfileCard({ identifier, description, onUseDifferentAccount, useDifferentAccountText }: UserProfileCardProps) { // Create profile label and initial from identifier const profileLabel = identifier.trim(); const profileInitial = profileLabel ? profileLabel.charAt(0).toUpperCase() : ""; return (
{profileLabel}
{description && ({description}
)}