Download src/components/features/images/thumbnail.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/images/thumbnail.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/images/thumbnail.tsx
-
curl -L -o thumbnail.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/images/thumbnail.tsx
424 Bytes
| import { cn } from "#/utils/utils"; | |
| interface ThumbnailProps { | |
| src: string; | |
| size?: "small" | "large"; | |
| } | |
| export function Thumbnail({ src, size = "small" }: ThumbnailProps) { | |
| return ( | |
| <img | |
| role="img" | |
| alt="" | |
| src={src} | |
| className={cn( | |
| "rounded-sm object-cover", | |
| size === "small" && "w-[62px] h-[62px]", | |
| size === "large" && "w-[100px] h-[100px]", | |
| )} | |
| /> | |
| ); | |
| } | |