import { setRequestLocale } from 'next-intl/server'
import Hero from '@/components/sections/Hero'
import TrustBar from '@/components/sections/TrustBar'
import ServicesOverview from '@/components/sections/ServicesOverview'
import Process from '@/components/sections/Process'
import SelectedWorks from '@/components/sections/SelectedWorks'
import Philosophy from '@/components/sections/Philosophy'
import Configurator from '@/components/sections/Configurator'
import Discovery from '@/components/sections/Discovery'
import CTABanner from '@/components/sections/CTABanner'

type Props = {
  params: Promise<{ locale: string }>
}

export default async function HomePage({ params }: Props) {
  const { locale } = await params
  setRequestLocale(locale)

  return (
    <main>
      <Hero />
      <TrustBar />
      <ServicesOverview />
      <Configurator />
      <Process />
      <Discovery />
      <SelectedWorks />
      <Philosophy />
      <CTABanner />
    </main>
  )
}
