import { setRequestLocale } from 'next-intl/server';
import { Hero } from '@/components/home/hero';
import { RoomList } from '@/components/home/room-list';
import { Services } from '@/components/home/services';
import { Newsletter } from '@/components/home/newsletter';

export default async function HomePage({ params }: { params: Promise<{ locale: string }> }) {
  const { locale } = await params;
  setRequestLocale(locale);

  return (
    <>
      <Hero />
      <RoomList />
      <Services />
      <Newsletter />
    </>
  );
}
