import { AnnouncementList } from '@/components/announcement-list';

interface AnnouncementsPageProps {
  params: Promise<{
    eventId: string;
  }>;
}

export default async function AnnouncementsPage({ params }: AnnouncementsPageProps) {
  const { eventId } = await params;
  
  return (
    <div className="min-h-screen bg-gray-50 py-8">
      <div className="max-w-4xl mx-auto px-4">
        <h1 className="text-3xl font-bold mb-8">Announcements</h1>
        <AnnouncementList eventId={eventId} />
      </div>
    </div>
  );
}