Spaces:
Sleeping
Sleeping
File size: 630 Bytes
f70bb71 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { SpaceAuthorData } from "@/utils/types";
import Image from "next/image";
export const SpaceAuthor = ({ author }: { author: SpaceAuthorData }) => {
return (
<p className="text-xl font-serif text-white/60 flex items-center justify-start gap-1.5">
by
<Image
src={
author.avatarUrl?.startsWith("http")
? author.avatarUrl
: `https://huggingface.co${author.avatarUrl}`
}
width={44}
height={44}
alt={`${author.fullname}'s avatar from Hugging Face`}
className="rounded-full w-6 h-6"
/>
{author.name}
</p>
);
};
|