'use client'; import { useParams, useRouter } from 'next/navigation'; import { useState, useEffect } from 'react'; import PageLayout from '../../../components/PageLayout'; import Icon from '../../../components/Icon'; import { content } from '../../../data/content'; import { solutionsContent } from '../../../data/pageContent'; export default function SolutionsPage() { const router = useRouter(); const params = useParams(); const currentLang = typeof params.lang === 'string' ? params.lang : 'en'; // Validate language and redirect if invalid useEffect(() => { const supportedLangs = ['zh-CN', 'zh-TW', 'en', 'ko', 'ja']; if (!supportedLangs.includes(currentLang)) { router.push('/en/solutions'); } }, [currentLang, router]); const currentContent = content[currentLang as keyof typeof content] || content.en; const pageContent = solutionsContent[currentLang as keyof typeof solutionsContent] || solutionsContent.en; const handleLanguageChange = (lang: string) => { router.push(`/${lang}/solutions`); }; return (
{/* Page Header */}

{pageContent.heading}

{pageContent.subheading}

{/* Industries Grid */}
{pageContent.industries.map((industry, index) => (

{industry.name}

{industry.description}

{currentLang === 'en' ? 'Key Benefits:' : currentLang === 'zh-CN' ? '主要优势:' : currentLang === 'zh-TW' ? '主要優勢:' : currentLang === 'ko' ? '주요 이점:' : '主な利点:'}

{industry.benefits.map((benefit, benefitIndex) => (

{benefit}

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

{currentLang === 'en' ? 'Need a customized solution for your industry?' : currentLang === 'zh-CN' ? '需要为您的行业定制解决方案?' : currentLang === 'zh-TW' ? '需要為您的行業定制解決方案?' : currentLang === 'ko' ? '귀하의 산업에 맞는 맞춤형 솔루션이 필요하신가요?' : 'あなたの業界向けのカスタマイズされたソリューションが必要ですか?'}

{currentLang === 'en' ? 'Our AWS experts can help you design and implement a cloud solution tailored to your specific industry requirements.' : currentLang === 'zh-CN' ? '我们的AWS专家可以帮助您设计和实施针对特定行业需求的云解决方案。' : currentLang === 'zh-TW' ? '我們的AWS專家可以幫助您設計和實施針對特定行業需求的雲解決方案。' : currentLang === 'ko' ? '당사의 AWS 전문가가 귀하의 특정 산업 요구 사항에 맞게 설계된 클라우드 솔루션을 설계하고 구현하는 데 도움을 드릴 수 있습니다.' : '当社のAWS専門家は、特定の業界要件に合わせたクラウドソリューションの設計と実装をお手伝いします。'}

); }