"use client"; import { useState } from "react"; import visaData from "./visa.json"; export default function VisaPage() { const [selectedVisaType, setSelectedVisaType] = useState(null); const [openFaq, setOpenFaq] = useState(null); const handleVisaTypeClick = (visaId: string) => { setSelectedVisaType(selectedVisaType === visaId ? null : visaId); }; const toggleFaq = (index: number) => { setOpenFaq(openFaq === index ? null : index); }; return (
{/* Hero Section */}

{visaData.hero.title}

{visaData.hero.description}

{/* Stats */}
{visaData.hero.stats.map((stat, index) => (
{stat.number}
{stat.label}
))}
{/* Visa Types */}

Các Loại Visa

{visaData.visaTypes.map((visa) => (
{/* Visa Header */}
handleVisaTypeClick(visa.id)} >
{visa.icon}

{visa.name}

{visa.description}

{/* Quick Stats */}
Thời gian:
{visa.processingTime}
Tỷ lệ thành công:
{visa.successRate}
{/* Detailed Info */} {selectedVisaType === visa.id && (
{/* Features */}

Tính năng:

    {visa.features.map((feature, index) => (
  • {feature}
  • ))}
{/* Popular Countries */}

Quốc gia phổ biến:

{visa.popularCountries.map((country, index) => ( {country} ))}
{/* CTA */}
)}
))}
{/* Process */}

Quy Trình Xin Visa

{/* Process Line */}
{visaData.process.map((step, index) => (
{/* Step Circle */}
{step.icon}
{/* Step Number */}
{step.step}

{step.title}

{step.description}

))}
{/* Why Choose Us */}

Tại Sao Chọn Chúng Tôi?

{visaData.whyChooseUs.map((reason, index) => (
{reason.icon}

{reason.title}

{reason.description}

))}
{/* FAQs */}

Câu Hỏi Thường Gặp

{visaData.faqs.map((faq, index) => (
{openFaq === index && (

{faq.answer}

)}
))}
{/* CTA Section */}

Sẵn Sàng Bắt Đầu Hành Trình?

Liên hệ ngay để được tư vấn miễn phí và nhận báo giá tốt nhất

); }