Download client/src/components/Chat/Input/Files/Image.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Chat/Input/Files/Image.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Chat/Input/Files/Image.tsx
-
curl -L -o Image.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Chat/Input/Files/Image.tsx
774 Bytes
| import { FileSources } from 'librechat-data-provider'; | |
| import ImagePreview from './ImagePreview'; | |
| import RemoveFile from './RemoveFile'; | |
| const Image = ({ | |
| imageBase64, | |
| url, | |
| onDelete, | |
| progress = 1, | |
| source = FileSources.local, | |
| }: { | |
| imageBase64?: string; | |
| url?: string; | |
| onDelete: () => void; | |
| progress: number; // between 0 and 1 | |
| source?: FileSources; | |
| }) => { | |
| return ( | |
| <div className="group relative inline-block text-sm text-black/70 dark:text-white/90"> | |
| <div className="relative overflow-hidden rounded-xl border border-gray-200 dark:border-gray-600"> | |
| <ImagePreview source={source} imageBase64={imageBase64} url={url} progress={progress} /> | |
| </div> | |
| <RemoveFile onRemove={onDelete} /> | |
| </div> | |
| ); | |
| }; | |
| export default Image; | |