import type { Metadata } from 'next';
import { getTranslations } from 'next-intl/server';
import BookingsScreen from './BookingsScreen';

export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
  const { locale } = await params;
  const t = await getTranslations({ locale, namespace: 'booking' });
  return { title: t('list_title') };
}

export default function Page() {
  return <BookingsScreen />;
}
