Buckets:
| import Image from "next/image"; | |
| import AuthorType from "../types/authorType"; | |
| type Props = { | |
| author: AuthorType; | |
| }; | |
| export default function Avatar({ author }: Props) { | |
| const name: string = author | |
| ? author.firstName && author.lastName | |
| ? `${author.firstName} ${author.lastName}` | |
| : author.name | |
| : null; | |
| return ( | |
| <div className="flex items-center"> | |
| <div className="w-12 h-12 relative mr-4"> | |
| <Image | |
| src={author.avatar.url} | |
| layout="fill" | |
| className="rounded-full" | |
| alt={name} | |
| /> | |
| </div> | |
| <div className="text-xl font-bold">{name}</div> | |
| </div> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 650 Bytes
- Xet hash:
- 911c1f043d7ed306b3d570e7ae12ad3c8c1c2ccce72eb308dcec501369703f48
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.