"use client"; import { Suspense, useEffect } from 'react'; import { useSearchParams } from 'next/navigation'; import dynamic from 'next/dynamic'; import { HeroSection } from "@/components/sections/hero-section"; import { SectionSkeleton } from "@/components/ui/loading-skeleton"; const ServicesSection = dynamic( () => import('@/components/sections/services-section').then(mod => ({ default: mod.ServicesSection })), { loading: () => , ssr: false } ); const ProductsSection = dynamic( () => import('@/components/sections/products-section').then(mod => ({ default: mod.ProductsSection })), { loading: () => , ssr: false } ); const CasesSection = dynamic( () => import('@/components/sections/cases-section').then(mod => ({ default: mod.CasesSection })), { loading: () => , ssr: false } ); const AboutSection = dynamic( () => import('@/components/sections/about-section').then(mod => ({ default: mod.AboutSection })), { loading: () => , ssr: false } ); const NewsSection = dynamic( () => import('@/components/sections/news-section').then(mod => ({ default: mod.NewsSection })), { loading: () => , ssr: false } ); function HomeContent() { const searchParams = useSearchParams(); useEffect(() => { const section = searchParams.get('section'); if (section) { const timer = setTimeout(() => { const targetElement = document.getElementById(section); if (targetElement) { targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }, 100); return () => clearTimeout(timer); } return undefined; }, [searchParams]); return (
); } export default function HomePage() { return ( }> ); }