Spaces:
Running
Running
Download frontend/src/components/test/OptionImage.jsx from banu4prasad/Gateprep: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/banu4prasad/Gateprep/resolve/main/frontend/src/components/test/OptionImage.jsx
- Command line
-
hf download hf://spaces/banu4prasad/Gateprep/frontend/src/components/test/OptionImage.jsx
-
curl -L -o OptionImage.jsx https://huggingface.co/spaces/banu4prasad/Gateprep/resolve/main/frontend/src/components/test/OptionImage.jsx
453 Bytes
| export default function OptionImage({ src, letter }) { | |
| if (!src) return null | |
| return ( | |
| <img | |
| src={src} | |
| alt={`option ${letter}`} | |
| width={320} | |
| height={137} | |
| loading="lazy" | |
| decoding="async" | |
| className="mt-2 w-full max-w-sm max-h-32 object-contain rounded cursor-pointer bg-muted aspect-[21/9]" | |
| onClick={(event) => { | |
| event.stopPropagation() | |
| window.open(src, '_blank') | |
| }} | |
| /> | |
| ) | |
| } | |