Download src/components/features/chat/chat-play-button.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/chat-play-button.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/chat/chat-play-button.tsx
-
curl -L -o chat-play-button.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/chat-play-button.tsx
603 Bytes
| import PlayIcon from "#/icons/play-solid.svg?react"; | |
| import { cn } from "#/utils/utils"; | |
| export interface ChatResumeAgentButtonProps { | |
| onAgentResumed: () => void; | |
| disabled?: boolean; | |
| } | |
| export function ChatResumeAgentButton({ | |
| onAgentResumed, | |
| disabled = false, | |
| }: ChatResumeAgentButtonProps) { | |
| return ( | |
| <button | |
| type="button" | |
| onClick={onAgentResumed} | |
| data-testid="play-button" | |
| disabled={disabled} | |
| className={cn("cursor-pointer", disabled && "cursor-not-allowed")} | |
| > | |
| <PlayIcon className="block max-w-none w-4 h-4 text-current" /> | |
| </button> | |
| ); | |
| } | |