Download src/components/features/settings/settings-nav-header.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/settings/settings-nav-header.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/settings/settings-nav-header.tsx
-
curl -L -o settings-nav-header.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/settings/settings-nav-header.tsx
619 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { Typography } from "#/ui/typography"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import { cn } from "#/utils/utils"; | |
| interface SettingsNavHeaderProps { | |
| text: I18nKey; | |
| className?: string; | |
| } | |
| export function SettingsNavHeader({ text, className }: SettingsNavHeaderProps) { | |
| const { t } = useTranslation("openhands"); | |
| return ( | |
| <div className={cn("px-3.5", className)}> | |
| <Typography.Text className="text-[11px] font-medium text-[var(--oh-text-dim)] uppercase tracking-wide leading-5"> | |
| {t(text)} | |
| </Typography.Text> | |
| </div> | |
| ); | |
| } | |