import { getDictionary } from "@/lib/dictionaries"
import { HeroSection } from "@/components/hero-section"
import { StatsSection } from "@/components/stats-section"
import { ServicesSection } from "@/components/services-section"
import { WhyChooseSection } from "@/components/why-choose-section"
import { TestimonialsSection } from "@/components/testimonials-section"
import { MapSection } from "@/components/map-section"
import { WhatsAppWidget } from "@/components/whatsapp-widget"

export default async function HomePage({
  params,
}: {
  params: Promise<{ lang: "sq" | "en" }>
}) {
  const { lang } = await params
  const dict = await getDictionary(lang)

  return (
    <div className="min-h-screen">
      <HeroSection dict={dict} />
      <StatsSection dict={dict} />
      <ServicesSection dict={dict} />
      <WhyChooseSection dict={dict} />
      <TestimonialsSection dict={dict} variant="home" />
      <MapSection dict={dict} variant="home" />
      <WhatsAppWidget dict={dict} />
    </div>
  )
}
