Spaces:
Build error
Build error
Download frontend/src/components/features/context-menu/context-menu.tsx from Backup-bdg/OpenHands: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/frontend/src/components/features/context-menu/context-menu.tsx
- Command line
-
hf download hf://spaces/Backup-bdg/OpenHands/frontend/src/components/features/context-menu/context-menu.tsx
-
curl -L -o context-menu.tsx https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/frontend/src/components/features/context-menu/context-menu.tsx
516 Bytes
| import React from "react"; | |
| import { cn } from "#/utils/utils"; | |
| interface ContextMenuProps { | |
| ref?: React.RefObject<HTMLUListElement | null>; | |
| testId?: string; | |
| children: React.ReactNode; | |
| className?: React.HTMLAttributes<HTMLUListElement>["className"]; | |
| } | |
| export function ContextMenu({ | |
| testId, | |
| children, | |
| className, | |
| ref, | |
| }: ContextMenuProps) { | |
| return ( | |
| <ul | |
| data-testid={testId} | |
| ref={ref} | |
| className={cn("bg-tertiary rounded-md", className)} | |
| > | |
| {children} | |
| </ul> | |
| ); | |
| } | |