fix: separate header avatar from username
This commit is contained in:
1 parent
06cd0cfe42
commit
0bd2ac6707
4 files changed
+51
-10
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { UserAvatarThumbnail } from "@/components/shared/user-avatar-thumbnail";
|
||||
|
||||
interface HeaderUserIdentityProps {
|
||||
figure: string;
|
||||
username: string;
|
||||
textColor: string;
|
||||
}
|
||||
|
||||
export function HeaderUserIdentity({
|
||||
figure,
|
||||
username,
|
||||
textColor,
|
||||
}: HeaderUserIdentityProps) {
|
||||
return (
|
||||
<span className="flex items-center gap-2">
|
||||
<UserAvatarThumbnail figure={figure} alt="" options={{ direction: 2 }} />
|
||||
<span
|
||||
className="hidden sm:inline font-semibold"
|
||||
style={{ color: textColor }}
|
||||
>
|
||||
{username}
|
||||
</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user