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, Globe } from "lucide-react"; import { useQuote } from "@/contexts/QuoteContext"; import { SEO } from "@/components/SEO"; import { StructuredData, generateFAQSchema } from "@/components/StructuredData"; import { useState } from "react"; 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 pin header type titles function translatePinHeaderType(locale: string, title: string): string { const parts = title.split(", "); return parts.map(part => translateSpecValue(locale as any, part)).join(", "); } export default function CustomPinHeaders() { 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('custom-pin-headers', { title: "Custom Pin Headers from China | Flexible MOQ | Zeakka", metaDescription: "High-quality custom pin headers from China. All pitch sizes (1.0mm, 1.27mm, 2.0mm, 2.54mm). 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 pinHeaderTypes = [ { title: "Single row, single wafer, straight, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/single-row-single-wafer-straight-through-hole-pin-header.png", }, { title: "Single row, single wafer, right angle, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/single-row-single-wafer-right-angle-through-hole-pin-header.png.webp", }, { title: "Single row, single wafer, straight, SMT", image: "https://wp.zeakka.com/wp-content/uploads/single-row-single-wafer-straight-SMT-pin-header.png.webp", }, { title: "Single row, single wafer, right angle, SMT", image: "https://wp.zeakka.com/wp-content/uploads/single-row-single-wafer-right-angle-SMT-pin-header.png.webp", }, { title: "Dual row, single wafer, straight, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-single-wafer-straight-through-hole-pin-header.png.webp", }, { title: "Dual row, single wafer, right angle, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-single-wafer-right-angle-through-hole-pin-header.png.webp", }, { title: "Dual row, single wafer, straight, SMT", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-single-wafer-straight-SMT-pin-header.png.webp", }, { title: "Dual row, single wafer, right angle, SMT", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-single-wafer-right-angle-SMT-pin-header.png.webp", }, { title: "Single row, dual wafer, straight, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/single-row-dual-wafer-straight-through-hole-pin-header.png.webp", }, { title: "Single row, dual wafer, right angle, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/single-row-dual-wafer-right-angle-through-hole-pin-header.png.webp", }, { title: "Single row, dual wafer, straight, SMT", image: "https://wp.zeakka.com/wp-content/uploads/single-row-dual-wafer-straight-SMT-pin-header.png.webp", }, { title: "Single row, dual wafer, right angle, SMT", image: "https://wp.zeakka.com/wp-content/uploads/single-row-dual-wafer-right-angle-SMT-pin-header.png.webp", }, { title: "Dual row, dual wafer, straight, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-dual-wafer-straight-through-hole-pin-header.png.webp", }, { title: "Dual row, dual wafer, right angle, through-hole", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-dual-wafer-right-angle-through-hole-pin-header.png.webp", }, { title: "Dual row, dual wafer, straight, SMT", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-dual-wafer-straight-SMT-pin-header.png.webp", }, { title: "Dual row, dual wafer, right angle, SMT", image: "https://wp.zeakka.com/wp-content/uploads/dual-row-dual-wafer-right-angle-SMT-pin-header.png.webp", }, { title: "Shrouded male pin headers (also known as box headers)", image: "https://wp.zeakka.com/wp-content/uploads/top-entry-SMT-box-header-1.png.webp", }, { title: "Shrouded IDC ejector pin headers", image: "https://wp.zeakka.com/wp-content/uploads/ejector-pin-header.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"), }, ]; const faqData = [ { question: faq("faqQuestion8"), answer: faq("faqAnswer8") }, { question: faq("faqQuestion9"), answer: faq("faqAnswer9") }, { question: faq("faqQuestion10"), answer: faq("faqAnswer10") }, { question: faq("faqQuestion11"), answer: faq("faqAnswer11") }, { question: faq("faqQuestion12"), answer: faq("faqAnswer12") }, { question: faq("faqQuestion13"), answer: faq("faqAnswer13") }, { question: faq("faqQuestion14"), answer: faq("faqAnswer14") } ]; const slugMap = { en: '/custom-pin-headers', es: '/es/cabezales-de-pines-personalizados', de: '/de/stiftleisten-nach-mass', }; // Combine all FAQ items for schema const allFaqItems = [...faqItems, ...faqData]; return ( <>
{/* Hero Section */}
{/* Background placeholder */}

Quality Custom Pin Headers from China

{translation.content}

{/* CTAs */}
{/* Trust Badges */}
{s("yearsExpertise")}
{s("fastSampling")}
{/* Pin Header Types Section */}

{s("pinHeaderTypes")}

{s("pinHeaderTypesSubtitle")}

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

{translatePinHeaderType(locale, item.title)}

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

{s("whyChooseZeakka")}

{/* Fast Sampling */}

{s("fastSamplingTitle")}

{s("fastSamplingDesc")}

{/* Flexible MOQ */}

{s("flexibleMoqTitle")}

{s("flexibleMoqDesc")}

{/* Competitive Pricing */}

{s("competitivePricingTitle")}

{s("competitivePricingDesc")}

{/* FAQ Section */}

{s("frequentlyAskedQuestions")}

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

{item.question}

{item.answer}

))}
{/* CTA Section */}

{s("readyToGetStarted")}

{s("ctaSubtitle")}

); }