Download src/components/features/sidebar/avatar.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/sidebar/avatar.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/sidebar/avatar.tsx
-
curl -L -o avatar.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/sidebar/avatar.tsx
363 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| interface AvatarProps { | |
| src: string; | |
| } | |
| export function Avatar({ src }: AvatarProps) { | |
| const { t } = useTranslation("openhands"); | |
| return ( | |
| <img | |
| src={src} | |
| alt={t(I18nKey.AVATAR$ALT_TEXT)} | |
| className="w-full h-full rounded-full" | |
| /> | |
| ); | |
| } | |