addded change profile
This commit is contained in:
19
src/components/profile/ProfileAvatar.jsx
Normal file
19
src/components/profile/ProfileAvatar.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
// ─── Profile avatar component ───────────────────────────────────────────────
|
||||
export default function ProfileAvatar({ avatar, name }) {
|
||||
if (avatar) {
|
||||
return (
|
||||
<img
|
||||
src={avatar}
|
||||
alt={name}
|
||||
className="f-profile-avatar"
|
||||
title={name}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="f-profile-avatar-placeholder" title={name}>
|
||||
👤
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user