Download code/web/src/components/who.tsx from MiniMaxAI/oss-ecosystem-data: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/datasets/MiniMaxAI/oss-ecosystem-data/resolve/fefade2a2ea452681b7b47beea90c96d6d1b5ab0/code/web/src/components/who.tsx
- Command line
-
hf download hf://datasets/MiniMaxAI/oss-ecosystem-data@fefade2a2ea452681b7b47beea90c96d6d1b5ab0/code/web/src/components/who.tsx
-
curl -L -o who.tsx https://huggingface.co/datasets/MiniMaxAI/oss-ecosystem-data/resolve/fefade2a2ea452681b7b47beea90c96d6d1b5ab0/code/web/src/components/who.tsx
501 Bytes
| import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" | |
| import type { Author } from "@/lib/types" | |
| export function Who({ name, authors, size = "size-8" }: { name: string; authors: Record<string, Author>; size?: string }) { | |
| const a = authors[name] | |
| return ( | |
| <Avatar className={`${size} shrink-0`}> | |
| {a?.a && <AvatarImage src={a.a} alt="" loading="lazy" />} | |
| <AvatarFallback className="text-sm">{name.slice(0, 1).toUpperCase()}</AvatarFallback> | |
| </Avatar> | |
| ) | |
| } | |