Download src/components/shared/buttons/remove-button.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/shared/buttons/remove-button.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/shared/buttons/remove-button.tsx
-
curl -L -o remove-button.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/shared/buttons/remove-button.tsx
654 Bytes
| import { cn } from "#/utils/utils"; | |
| import CloseIcon from "#/icons/close.svg?react"; | |
| interface RemoveButtonProps { | |
| onClick: () => void; | |
| className?: React.HTMLAttributes<HTMLDivElement>["className"]; | |
| "aria-label"?: string; | |
| } | |
| export function RemoveButton({ | |
| onClick, | |
| className, | |
| "aria-label": ariaLabel, | |
| }: RemoveButtonProps) { | |
| return ( | |
| <button | |
| type="button" | |
| onClick={onClick} | |
| aria-label={ariaLabel} | |
| className={cn( | |
| "bg-[var(--oh-muted)] rounded-full w-5 h-5 flex items-center justify-center cursor-pointer", | |
| className, | |
| )} | |
| > | |
| <CloseIcon width={18} height={18} /> | |
| </button> | |
| ); | |
| } | |