Download src/components/features/chat/chat-stop-button.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/chat-stop-button.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/chat/chat-stop-button.tsx
-
curl -L -o chat-stop-button.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/chat-stop-button.tsx
420 Bytes
| import PauseIcon from "#/icons/pause.svg?react"; | |
| export interface ChatStopButtonProps { | |
| handleStop: () => void; | |
| } | |
| export function ChatStopButton({ handleStop }: ChatStopButtonProps) { | |
| return ( | |
| <button | |
| type="button" | |
| onClick={handleStop} | |
| data-testid="stop-button" | |
| className="cursor-pointer" | |
| > | |
| <PauseIcon className="block max-w-none w-4 h-4 text-current" /> | |
| </button> | |
| ); | |
| } | |