HubAPI / components /ProductVisionNotice.tsx
samirhosninet's picture
feat(quickstart): replace CLI demo with OpenAI-compatible code preview
4fdf972
Raw History Blame Contribute Delete
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>
);
}