14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
import { type User } from '@/types';
|
|
|
|
export function UserInfo({ user, showEmail = false }: { user: User; showEmail?: boolean }) {
|
|
|
|
return (
|
|
<>
|
|
My Account
|
|
<div className="grid flex-1 text-left text-sm leading-tight">
|
|
{showEmail && <span className="text-muted-foreground truncate text-xs">{user.email}</span>}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|