Download client/src/components/Files/FileList/UploadFileButton.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/FileList/UploadFileButton.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Files/FileList/UploadFileButton.tsx
-
curl -L -o UploadFileButton.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/FileList/UploadFileButton.tsx
506 Bytes
| import { PlusIcon } from 'lucide-react'; | |
| import React from 'react'; | |
| import { Button } from '~/components/ui'; | |
| type UploadFileProps = { | |
| onClick: () => void; | |
| }; | |
| export default function UploadFileButton({ onClick }: UploadFileProps) { | |
| return ( | |
| <div className="w-full"> | |
| <Button className="w-full bg-black px-3 text-white" onClick={onClick}> | |
| <PlusIcon className="h-4 w-4 font-bold" /> | |
| <span className="text-nowrap">Upload New File</span> | |
| </Button> | |
| </div> | |
| ); | |
| } | |