mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
16 lines
396 B
TypeScript
16 lines
396 B
TypeScript
interface Props {
|
|
avatarUrl?: string;
|
|
className?: string;
|
|
}
|
|
|
|
const UserAvatar = (props: Props) => {
|
|
const { avatarUrl, className } = props;
|
|
return (
|
|
<div className={`${className ?? ""} w-8 h-8 overflow-clip`}>
|
|
<img className="w-full h-auto rounded-full min-w-full min-h-full object-cover" src={avatarUrl || "/logo.webp"} alt="" />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default UserAvatar;
|