Spaces:
Configuration error
Configuration error
Download frontend/src/components/features/settings/key-status-icon.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/settings/key-status-icon.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/features/settings/key-status-icon.tsx
-
curl -L -o key-status-icon.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/settings/key-status-icon.tsx
381 Bytes
| import SuccessIcon from "#/icons/success.svg?react"; | |
| import { cn } from "#/utils/utils"; | |
| interface KeyStatusIconProps { | |
| isSet: boolean; | |
| } | |
| export function KeyStatusIcon({ isSet }: KeyStatusIconProps) { | |
| return ( | |
| <span data-testid={isSet ? "set-indicator" : "unset-indicator"}> | |
| <SuccessIcon className={cn(isSet ? "text-success" : "text-danger")} /> | |
| </span> | |
| ); | |
| } | |