Download src/components/features/home/shared/loading-spinner.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/home/shared/loading-spinner.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/home/shared/loading-spinner.tsx
-
curl -L -o loading-spinner.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/home/shared/loading-spinner.tsx
571 Bytes
| import React from "react"; | |
| import { cn } from "#/utils/utils"; | |
| interface LoadingSpinnerProps { | |
| hasSelection: boolean; | |
| testId?: string; | |
| } | |
| export function LoadingSpinner({ | |
| hasSelection, | |
| testId = "dropdown-loading", | |
| }: LoadingSpinnerProps) { | |
| return ( | |
| <div | |
| className={cn( | |
| "absolute top-1/2 transform -translate-y-1/2", | |
| hasSelection ? "right-11" : "right-6", | |
| )} | |
| > | |
| <div | |
| className="animate-spin h-4 w-4 border-2 border-transparent border-t-white rounded-full" | |
| data-testid={testId} | |
| /> | |
| </div> | |
| ); | |
| } | |