'use client'; import { cn } from '@/components/ui/utils'; import { useTranslations } from 'next-intl'; import { useAnalytics } from './analytics/useAnalytics'; import { AnalyticsEvents } from './analytics/analytics-events'; interface DatasheetDownloadProps { datasheetPath: string; className?: string; } export default function DatasheetDownload({ datasheetPath, className }: DatasheetDownloadProps) { const t = useTranslations('Products'); const { trackEvent } = useAnalytics(); return (
trackEvent(AnalyticsEvents.DOWNLOAD, { file_name: datasheetPath.split('/').pop(), file_path: datasheetPath, location: 'product_page', }) } className="group relative block w-full overflow-hidden rounded-[32px] bg-primary-dark p-1 transition-all duration-500 hover:shadow-[0_20px_50px_rgba(0,0,0,0.2)] hover:-translate-y-1" > {/* Animated Background Gradient */}
{/* Inner Content */}
{/* Icon Container */}
{/* Text Content */}
PDF Datasheet

{t('downloadDatasheet')}

{t('downloadDatasheetDesc')}

{/* Arrow Icon */}
); }