Download src/components/features/controls/server-status-context-menu-icon-text.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 847 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/controls/server-status-context-menu-icon-text.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/controls/server-status-context-menu-icon-text.tsx
-
curl -L -o server-status-context-menu-icon-text.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/controls/server-status-context-menu-icon-text.tsx
847 Bytes
| import { ContextMenuListItem } from "#/components/features/context-menu/context-menu-list-item"; | |
| import { dropdownMenuRowIconWrapperClassName } from "#/utils/dropdown-classes"; | |
| interface ServerStatusContextMenuIconTextProps { | |
| icon: React.ReactNode; | |
| text: string; | |
| onClick: (event: React.MouseEvent<HTMLButtonElement>) => void; | |
| testId?: string; | |
| } | |
| export function ServerStatusContextMenuIconText({ | |
| icon, | |
| text, | |
| onClick, | |
| testId, | |
| }: ServerStatusContextMenuIconTextProps) { | |
| return ( | |
| <ContextMenuListItem testId={testId} onClick={onClick}> | |
| <div className="flex min-w-0 w-full items-center justify-between gap-2"> | |
| <span className="min-w-0 truncate">{text}</span> | |
| <span className={dropdownMenuRowIconWrapperClassName} aria-hidden> | |
| {icon} | |
| </span> | |
| </div> | |
| </ContextMenuListItem> | |
| ); | |
| } | |