Spaces:
Paused
Paused
Download components/shared/loading/usage-loading.tsx from Leon4gr45/paper2code-cli: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/shared/loading/usage-loading.tsx
- Command line
-
hf download hf://spaces/Leon4gr45/paper2code-cli/components/shared/loading/usage-loading.tsx
-
curl -L -o usage-loading.tsx https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/shared/loading/usage-loading.tsx
462 Bytes
| "use client"; | |
| import { useState, useEffect } from "react"; | |
| import ScrambleText from "@/components/ui/motion/scramble-text"; | |
| export function UsageLoadingText({ text = "Loading..." }: { text?: string }) { | |
| const [isInView, setIsInView] = useState(false); | |
| useEffect(() => { | |
| setIsInView(true); | |
| }, []); | |
| return ( | |
| <div className="text-xs text-zinc-500"> | |
| <ScrambleText text={text} delay={0} duration={1} isInView={isInView} /> | |
| </div> | |
| ); | |
| } | |