silverwolf-x's picture
download
raw
523 Bytes
import Image from "next/image";
import Author from "../types/author";
type Props = {
author: Author;
};
export default function Avatar({ author }: Props) {
const name: string = author?.name;
return (
<div className="flex items-center">
<div className="w-12 h-12 relative mr-4">
<Image
src={author.picture.url}
layout="fill"
className="rounded-full"
alt={name}
/>
</div>
<div className="text-xl font-bold">{name}</div>
</div>
);
}

Xet Storage Details

Size:
523 Bytes
·
Xet hash:
3b227d61aee09e1e7a1b2f7dc238c9217b9ffe77151020d8216269600f8d76af

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