Spaces:
Paused
Paused
Download components/ProductVisionNotice.tsx from samirhosninet/HubAPI: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/ProductVisionNotice.tsx
- Command line
-
hf download hf://spaces/samirhosninet/HubAPI/components/ProductVisionNotice.tsx
-
curl -L -o ProductVisionNotice.tsx https://huggingface.co/spaces/samirhosninet/HubAPI/resolve/main/components/ProductVisionNotice.tsx
871 Bytes
| "use client"; | |
| import { useLanguage } from "@/components/LanguageContext"; | |
| type ProductVisionNoticeProps = { | |
| className?: string; | |
| labelKey?: "mapVisionLabel" | "quickstartVisionLabel"; | |
| disclaimerKey?: "mapVisionDisclaimer" | "quickstartVisionDisclaimer"; | |
| }; | |
| export function ProductVisionNotice({ | |
| className = "", | |
| labelKey = "mapVisionLabel", | |
| disclaimerKey = "mapVisionDisclaimer", | |
| }: ProductVisionNoticeProps) { | |
| const { t } = useLanguage(); | |
| return ( | |
| <div | |
| className={`w-full max-w-2xl mx-auto text-center mb-6 px-2 pointer-events-none ${className}`} | |
| > | |
| <p className="text-xs sm:text-sm font-mono font-bold uppercase tracking-widest text-primary"> | |
| {t(labelKey)} | |
| </p> | |
| <p className="mt-1.5 text-[11px] sm:text-xs font-mono text-muted-foreground leading-relaxed"> | |
| {t(disclaimerKey)} | |
| </p> | |
| </div> | |
| ); | |
| } | |