Spaces:
Configuration error
Configuration error
Download frontend/src/components/shared/buttons/remove-button.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/remove-button.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/shared/buttons/remove-button.tsx
-
curl -L -o remove-button.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/buttons/remove-button.tsx
494 Bytes
| import { cn } from "#/utils/utils"; | |
| import CloseIcon from "#/icons/close.svg?react"; | |
| interface RemoveButtonProps { | |
| onClick: () => void; | |
| } | |
| export function RemoveButton({ onClick }: RemoveButtonProps) { | |
| return ( | |
| <button | |
| type="button" | |
| onClick={onClick} | |
| className={cn( | |
| "bg-neutral-400 rounded-full w-3 h-3 flex items-center justify-center", | |
| "absolute right-[3px] top-[3px]", | |
| )} | |
| > | |
| <CloseIcon width={10} height={10} /> | |
| </button> | |
| ); | |
| } | |