first commit
This commit is contained in:
13
resources/js/components/user-info.tsx
Normal file
13
resources/js/components/user-info.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user