Spaces:
Paused
Paused
Download client/src/components/globals/Image.jsx from arabdullah/chatty: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/arabdullah/chatty/resolve/main/client/src/components/globals/Image.jsx
- Command line
-
hf download hf://spaces/arabdullah/chatty/client/src/components/globals/Image.jsx
-
curl -L -o Image.jsx https://huggingface.co/spaces/arabdullah/chatty/resolve/main/client/src/components/globals/Image.jsx
438 Bytes
| import React from "react"; | |
| import { Image as CloudImage, Placeholder } from "cloudinary-react"; | |
| import process from "process"; | |
| function Image({ src, alt, className }) { | |
| return ( | |
| <CloudImage | |
| cloudName={process.env.REACT_APP_CLOUDINARY_NAME} | |
| publicId={src} | |
| alt={alt} | |
| className={`${className} object-center object-cover`} | |
| > | |
| <Placeholder type="blur" /> | |
| </CloudImage> | |
| ); | |
| } | |
| export default Image; | |