Spaces:
Configuration error
Configuration error
Download frontend/src/components/layout/served-app-label.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/layout/served-app-label.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/layout/served-app-label.tsx
-
curl -L -o served-app-label.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/layout/served-app-label.tsx
654 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { useActiveHost } from "#/hooks/query/use-active-host"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| export function ServedAppLabel() { | |
| const { t } = useTranslation(); | |
| const { activeHost } = useActiveHost(); | |
| return ( | |
| <div className="flex items-center justify-between w-full"> | |
| <div className="flex items-center gap-2"> | |
| <div className="flex items-center gap-2">{t(I18nKey.APP$TITLE)}</div> | |
| <span className="border rounded-md text- px-1 font-bold">BETA</span> | |
| </div> | |
| {activeHost && <div className="w-2 h-2 bg-green-500 rounded-full" />} | |
| </div> | |
| ); | |
| } | |