Download src/components/features/conversation-panel/menu-heading.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 951 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/conversation-panel/menu-heading.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/conversation-panel/menu-heading.tsx
-
curl -L -o menu-heading.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/conversation-panel/menu-heading.tsx
951 Bytes
| import React from "react"; | |
| import { cn } from "#/utils/utils"; | |
| const MENU_SECTION_HEADING_PADDING = "px-2 pb-1 pt-1"; | |
| const MENU_SECTION_HEADING_TEXT = | |
| "text-[11px] font-semibold uppercase tracking-wide text-[var(--oh-muted)]"; | |
| export function MenuHeading({ | |
| children, | |
| suffix, | |
| }: { | |
| children: React.ReactNode; | |
| suffix?: React.ReactNode; | |
| }) { | |
| if (suffix != null) { | |
| return ( | |
| <div | |
| role="presentation" | |
| className={cn( | |
| "flex items-baseline justify-between gap-2", | |
| MENU_SECTION_HEADING_PADDING, | |
| )} | |
| > | |
| <span | |
| className={cn( | |
| "min-w-0 truncate text-left", | |
| MENU_SECTION_HEADING_TEXT, | |
| )} | |
| > | |
| {children} | |
| </span> | |
| {suffix} | |
| </div> | |
| ); | |
| } | |
| return ( | |
| <div | |
| role="presentation" | |
| className={cn(MENU_SECTION_HEADING_PADDING, MENU_SECTION_HEADING_TEXT)} | |
| > | |
| {children} | |
| </div> | |
| ); | |
| } | |