Spaces:
Paused
Paused
Download components/shared/ui/ascii-dot-loader.tsx from Leon4gr45/paper2code-cli: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/shared/ui/ascii-dot-loader.tsx
- Command line
-
hf download hf://spaces/Leon4gr45/paper2code-cli/components/shared/ui/ascii-dot-loader.tsx
-
curl -L -o ascii-dot-loader.tsx https://huggingface.co/spaces/Leon4gr45/paper2code-cli/resolve/main/components/shared/ui/ascii-dot-loader.tsx
639 Bytes
| "use client"; | |
| import React from "react"; | |
| import { AnimatedDotIcon } from "@/components/shared/animated-dot-icon"; | |
| interface AsciiDotLoaderProps { | |
| size?: number; | |
| animated?: boolean; | |
| className?: string; | |
| pattern?: Parameters<typeof AnimatedDotIcon>[0]["pattern"]; | |
| } | |
| // Thin wrapper to reuse the exact ASCII pixel effect used on the home hero | |
| export default function AsciiDotLoader({ | |
| size = 20, | |
| animated = true, | |
| className, | |
| pattern = "logs", | |
| }: AsciiDotLoaderProps) { | |
| return ( | |
| <AnimatedDotIcon | |
| size={size} | |
| active={animated} | |
| alwaysHeat | |
| className={className} | |
| pattern={pattern} | |
| /> | |
| ); | |
| } | |