Spaces:
Paused
Paused
Download components/shared/icons/source-icon.tsx from Leon4gr45/paper2code-cli: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/shared/icons/source-icon.tsx
- Command line
-
hf download hf://spaces/Leon4gr45/paper2code-cli/components/shared/icons/source-icon.tsx
-
curl -L -o source-icon.tsx https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/shared/icons/source-icon.tsx
446 Bytes
| import { JSXElementConstructor } from "react"; | |
| import Image from "next/image"; | |
| export const SourceIcon = ({ id }: { id: string }) => { | |
| return ( | |
| <div className="relative"> | |
| <div className=""> | |
| {id && ( | |
| <Image | |
| alt={id} | |
| width={36} | |
| height={36} | |
| className="h-10 w-10 aspect-square" | |
| src={`/icons/${id}.svg`} | |
| /> | |
| )} | |
| </div> | |
| </div> | |
| ); | |
| }; | |