profile picture

This commit is contained in:
hamid zarghami
2026-07-20 10:11:43 +03:30
parent bd65d28ea3
commit 94639858f2
11 changed files with 53 additions and 16 deletions
@@ -0,0 +1,16 @@
import { type FC } from "react";
import AvatarImage from "../../../assets/images/avatar_image.png";
type Props = {
src?: string | null;
alt?: string;
className?: string;
};
const UserAvatar: FC<Props> = ({ src, alt = "", className = "size-6" }) => (
<div className={`${className} rounded-full overflow-hidden shrink-0 bg-[#D0D0D0]`}>
<img src={src || AvatarImage} alt={alt} className="size-full object-cover" />
</div>
);
export default UserAvatar;