import Link from 'next/link' import Navbar from '@/components/Navbar' import CTA from '@/components/CTA' import Footer from '@/components/Footer' import type { SeoPageProfile } from '@/lib/seoPages' import { siteConfig, hasIosStoreUrl } from '@/lib/site' interface SeoCategoryPageProps { profile: SeoPageProfile } export default function SeoCategoryPage({ profile }: SeoCategoryPageProps) { const labels = { en: { heroTag: 'GreenLens', primaryCta: 'Try GreenLens', secondaryCta: 'See full comparison', definition: 'Definition', updated: 'Last updated:', tableTag: 'At a glance', bestFit: 'Best fit', chooseIf: 'Choose GreenLens if:', notBestFit: 'Not the best fit', notRightIf: 'GreenLens is not the right tool if:', faqTag: 'FAQ', faqTitle: 'Common questions answered directly.', related: 'Related', supportTag: 'Need help?', supportTitle: 'Talk to GreenLens support', supportCopy: 'Questions about scans, care plans, billing, or features? Use the support page.', }, de: { heroTag: 'GreenLens', primaryCta: 'GreenLens testen', secondaryCta: 'Vergleich ansehen', definition: 'Definition', updated: 'Aktualisiert:', tableTag: 'Überblick', bestFit: 'Passt gut', chooseIf: 'Wähle GreenLens, wenn:', notBestFit: 'Nicht ideal', notRightIf: 'GreenLens ist nicht die richtige Wahl, wenn:', faqTag: 'FAQ', faqTitle: 'Häufige Fragen direkt beantwortet.', related: 'Verwandt', supportTag: 'Brauchst du Hilfe?', supportTitle: 'GreenLens Support kontaktieren', supportCopy: 'Fragen zu Scans, Pflegeplänen, Abrechnung oder Funktionen? Nutze die Support-Seite.', }, es: { heroTag: 'GreenLens', primaryCta: 'Probar GreenLens', secondaryCta: 'Ver comparación', definition: 'Definición', updated: 'Actualizado:', tableTag: 'Resumen', bestFit: 'Mejor opción', chooseIf: 'Elige GreenLens si:', notBestFit: 'No es ideal', notRightIf: 'GreenLens no es la herramienta adecuada si:', faqTag: 'FAQ', faqTitle: 'Preguntas frecuentes respondidas directamente.', related: 'Relacionado', supportTag: '¿Necesitas ayuda?', supportTitle: 'Contacta con soporte de GreenLens', supportCopy: '¿Preguntas sobre escaneos, planes de cuidado, facturación o funciones? Usa la página de soporte.', }, }[profile.locale ?? 'en'] const faqSchema = { '@context': 'https://schema.org', '@type': 'FAQPage', mainEntity: profile.faqs.map((item) => ({ '@type': 'Question', name: item.question, acceptedAnswer: { '@type': 'Answer', text: item.answer, }, })), } const appSchema = profile.includeAppSchema ? { '@context': 'https://schema.org', '@type': 'SoftwareApplication', name: siteConfig.name, operatingSystem: 'iOS, Android', applicationCategory: 'LifestyleApplication', description: profile.directAnswer, ...(hasIosStoreUrl && { downloadUrl: siteConfig.iosAppStoreUrl }), offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR', }, } : null const breadcrumbSchema = { '@context': 'https://schema.org', '@type': 'BreadcrumbList', itemListElement: [ { '@type': 'ListItem', position: 1, name: 'Home', item: siteConfig.domain, }, { '@type': 'ListItem', position: 2, name: profile.h1, item: `${siteConfig.domain}${profile.canonical}`, }, ], } return ( <>