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