import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible"; import { ChevronDown, CheckCircle2, Package, Zap } from "lucide-react"; import { useQuote } from "@/contexts/QuoteContext"; import { SEO } from "@/components/SEO"; import { StructuredData, generateFAQSchema } from "@/components/StructuredData"; import { usePageTranslation } from "@/hooks/usePageTranslation"; import { useLocale } from "@/contexts/LocaleContext"; import { getProductPageText } from "@/lib/productPageTranslations"; import { getProductSectionText } from "@/lib/productSectionTranslations"; import { getFemaleHeadersText } from "@/lib/femaleHeadersTranslations"; import { translateSpecValue } from "@/lib/productSpecTranslations"; import { HreflangLinks } from "@/components/HreflangLinks"; // Helper function to translate female header type titles function translateFemaleHeaderType(locale: string, title: string): string { // Handle special cases if (title === "Triple row female headers") { return locale === 'es' ? "Conectores hembra de fila triple" : locale === 'de' ? "Weibliche Steckverbinder mit dreifacher Reihe" : title; } if (title === "U-shape female headers") { return locale === 'es' ? "Conectores hembra en forma de U" : locale === 'de' ? "U-förmige weibliche Steckverbinder" : title; } if (title === "Single row, additional wafer") { return locale === 'es' ? "Fila única, oblea adicional" : locale === 'de' ? "Einfache Reihe, zusätzliche Waffel" : title; } if (title === "Dual row, additional wafer") { return locale === 'es' ? "Fila dual, oblea adicional" : locale === 'de' ? "Doppelreihe, zusätzliche Waffel" : title; } const parts = title.split(", "); return parts.map(part => translateSpecValue(locale as any, part)).join(", "); } export default function FemaleHeaders() { const { locale } = useLocale(); const t = (key: keyof typeof import('@/lib/productPageTranslations').productPageTranslations.en) => getProductPageText(locale as any, key); const s = (key: keyof typeof import('@/lib/productSectionTranslations').productSectionTranslations.en) => getProductSectionText(locale as any, key); const faq = (key: keyof typeof import('@/lib/femaleHeadersTranslations').femaleHeadersTranslations.en) => getFemaleHeadersText(locale as any, key); const { openQuote } = useQuote(); const { translation } = usePageTranslation('female-headers', { title: "Female Headers | Custom Connector Solutions", metaDescription: "High-quality female headers for interconnect applications. All pitch sizes available. Fast sampling, flexible MOQ, competitive pricing.", content: "Flexible MOQ. Competitive pricing. All pitch sizes available (1.0mm, 1.27mm, 2.0mm, 2.54mm). From through-hole to SMT, straight to right-angle configurations.", }); const [openFaq, setOpenFaq] = useState(null); const femaleHeaderTypes = [ { title: "Single row, straight, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/single-row-straight-through-hole-female-header.png.webp", }, { title: "Single row, right angle, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/single-row-right-angle-through-hole-female-header.png.webp", }, { title: "Single row, straight, SMT", image: "https://wp.zeakka.com/wp-content/uploads/single-row-top-entry-SMT-female-header.png.webp", }, { title: "Single row, right angle, SMT", image: "https://wp.zeakka.com/wp-content/uploads/single-row-side-entry-SMT-female-header.png.webp", }, { title: "Single row, additional wafer", image: "https://wp.zeakka.com/wp-content/uploads/single-row-straight-through-hole-dual-wafer-female-header.png.webp", }, { title: "Dual row, straight, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-straight-through-hole-female-header.png.webp", }, { title: "Dual row, right angle, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-right-angle-through-hole-female-header.png.webp", }, { title: "Dual row, straight, SMT", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-top-entry-SMT-female-header.png.webp", }, { title: "Dual row, right angle, SMT", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-side-entry-SMT-female-header.png.webp", }, { title: "Dual row, additional wafer", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-straight-through-hole-dual-wafer-female-header.png.webp", }, { title: "Triple row female headers", image: "https://wp.zeakka.com/wp-content/uploads/triple-row-straight-through-hoe-female-header.png.webp", }, { title: "U-shape female headers", image: "https://wp.zeakka.com/wp-content/uploads/U-type-female-headers.png.webp", }, ]; const faqItems = [ { question: faq("faqQuestion1"), answer: faq("faqAnswer1"), }, { question: faq("faqQuestion2"), answer: faq("faqAnswer2"), }, { question: faq("faqQuestion3"), answer: faq("faqAnswer3"), }, { question: faq("faqQuestion4"), answer: faq("faqAnswer4"), }, { question: faq("faqQuestion5"), answer: faq("faqAnswer5"), }, { question: faq("faqQuestion6"), answer: faq("faqAnswer6"), }, { question: faq("faqQuestion7"), answer: faq("faqAnswer7"), }, { question: faq("faqQuestion8"), answer: faq("faqAnswer8"), }, ]; const faqDataForSchema = faqItems.map(item => ({ question: item.question, answer: item.answer })); const slugMap = { en: '/female-headers', es: '/es/conectores-hembra', de: '/de/buchsenleisten', }; return ( <>
{/* Hero Section */}
{/* Background placeholder */}

Quality Female Headers from China

{translation.content}

{/* CTAs */}
{/* Trust Badges */}
{s("manufacturerPrice")}
{s("premiumQuality")}
{/* Female Header Types Section */}

{s("femaleHeaderTypes")}

{s("femaleHeaderTypesSubtitle")}

{femaleHeaderTypes.map((item, index) => (
{item.title}

{translateFemaleHeaderType(locale, item.title)}

))}
{/* Core Value Propositions */}

{s("whyChooseZeakka")}

{/* Premium Quality */}

{s("premiumQuality")}

{locale === 'es' ? 'Control de calidad estricto en cada etapa. Todos los productos cumplen con los estándares internacionales y las especificaciones del cliente.' : locale === 'de' ? 'Strenge Qualitätskontrolle in jeder Phase. Alle Produkte erfüllen internationale Standards und Kundenspezifikationen.' : 'Strict quality control at every stage. All products meet international standards and customer specifications.'}

{/* Free Samples Support */}

{locale === 'es' ? 'Soporte de Muestras Gratis' : locale === 'de' ? 'Kostenlose Muster' : 'Free Samples Support'}

{locale === 'es' ? 'Obtenga muestras gratuitas para evaluar nuestros productos antes de realizar pedidos al por mayor. Apoyamos su proceso de validación.' : locale === 'de' ? 'Erhalten Sie kostenlose Muster, um unsere Produkte zu bewerten, bevor Sie Großbestellungen aufgeben. Wir unterstützen Ihren Validierungsprozess.' : 'Get free samples to evaluate our products before placing bulk orders. We support your validation process.'}

{/* Fast Lead Time */}

{locale === 'es' ? 'Tiempo de Entrega 2-3 Semanas' : locale === 'de' ? '2-3 Wochen Lieferzeit' : '2-3 Weeks Lead Time'}

{locale === 'es' ? 'Producción y entrega rápidas. La mayoría de los pedidos se completan en 2-3 semanas, llevando sus productos al mercado rápidamente.' : locale === 'de' ? 'Schnelle Produktion und Lieferung. Die meisten Bestellungen werden innerhalb von 2-3 Wochen abgeschlossen, sodass Ihre Produkte schnell auf den Markt kommen.' : 'Fast production and delivery. Most orders completed within 2-3 weeks, getting your products to market quickly.'}

{/* FAQ Section */}

{s("frequentlyAskedQuestions")}

{faqItems.map((item, index) => ( setOpenFaq(openFaq === item.question ? null : item.question) } >

{item.question}

{item.answer}

))}
{/* CTA Section */}

{s("readyToGetStarted")}

{locale === 'es' ? 'Conectores hembra de calidad premium. Precios mayoristas. Muestras gratuitas. Obtenga una cotización hoy—responderemos en 24 horas.' : locale === 'de' ? 'Premium-Qualität Buchsenleisten. Großhandelspreise. Kostenlose Muster. Fordern Sie noch heute ein Angebot an – wir antworten innerhalb von 24 Stunden.' : 'Premium quality female headers. Wholesale pricing. Free samples. Get a quote today—we\'ll respond within 24 hours.'}

); }