Download client/src/components/Files/DeleteIconButton.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/DeleteIconButton.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Files/DeleteIconButton.tsx
-
curl -L -o DeleteIconButton.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/DeleteIconButton.tsx
425 Bytes
| import React from 'react'; | |
| import { CrossIcon, NewTrashIcon } from '~/components/svg'; | |
| import { Button } from '~/components/ui'; | |
| type DeleteIconButtonProps = { | |
| onClick: () => void; | |
| }; | |
| export default function DeleteIconButton({ onClick }: DeleteIconButtonProps) { | |
| return ( | |
| <div className="w-fit"> | |
| <Button className="bg-red-400 p-3" onClick={onClick}> | |
| <NewTrashIcon /> | |
| </Button> | |
| </div> | |
| ); | |
| } | |