silverwolf-x's picture
download
raw
600 Bytes
import Image from "next/image";
type AvatarProps = {
name: string;
picture: string;
};
const Avatar = (props: AvatarProps) => {
const { name, picture } = props;
return (
<div className="flex items-center">
<div className="w-12 h-12 relative mr-4">
{picture && (
<Image
src={`${picture}?auto=format,compress,enhance&w=100&h=100`}
layout="fill"
className="rounded-full"
alt={name}
/>
)}
</div>
<div className="text-xl font-bold">{name}</div>
</div>
);
};
export default Avatar;

Xet Storage Details

Size:
600 Bytes
·
Xet hash:
f749072996296c661c2b2b32618c79277099b7dd4f26d39f02bb728a1e0fc09a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.