Download client/src/components/Files/FileList/FileList.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/FileList/FileList.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Files/FileList/FileList.tsx
-
curl -L -o FileList.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/FileList/FileList.tsx
778 Bytes
| import type { TFile } from 'librechat-data-provider'; | |
| import React from 'react'; | |
| import FileListItem from './FileListItem'; | |
| import FileListItem2 from './FileListItem2'; | |
| type FileListProps = { | |
| files: TFile[]; | |
| deleteFile: (id: string | undefined) => void; | |
| attachedVectorStores: { name: string }[]; | |
| }; | |
| export default function FileList({ files, deleteFile, attachedVectorStores }: FileListProps) { | |
| return ( | |
| <div className="h-[85vh] overflow-y-auto"> | |
| {files.map((file) => ( | |
| // <FileListItem key={file._id} file={file} deleteFile={deleteFile} width="100%" /> | |
| <FileListItem2 | |
| key={file._id} | |
| file={file} | |
| deleteFile={deleteFile} | |
| attachedVectorStores={attachedVectorStores} | |
| /> | |
| ))} | |
| </div> | |
| ); | |
| } | |