File size: 871 Bytes
cfaedfc
 
 
 
4fdf972
 
 
 
 
 
 
 
 
 
 
cfaedfc
 
 
 
 
 
 
4fdf972
cfaedfc
 
4fdf972
cfaedfc
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"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>
  );
}