silverwolf-x's picture
download
raw
535 Bytes
import { PrismicNextImage } from "@prismicio/next";
import { ImageField } from "@prismicio/types";
type AvatarProps = {
name: string;
picture: ImageField;
};
export default function Avatar({ name, picture }: AvatarProps) {
return (
<div className="flex items-center">
<div className="w-12 h-12 relative mr-4">
<PrismicNextImage
field={picture}
layout="fill"
className="rounded-full"
/>
</div>
<div className="text-xl font-bold">{name}</div>
</div>
);
}

Xet Storage Details

Size:
535 Bytes
·
Xet hash:
a85f5ccf4517956381b48ca29389da9f97f1753050760fd7d926d4efaeb7f506

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