import { mockDb } from '@/lib/mockDb' import { notFound } from 'next/navigation' import EventFormClient from './EventFormClient' interface Props { params: Promise<{ locale: string; id: string }> } export default async function AdminEventDetailPage({ params }: Props) { const { id } = await params let event = null if (id !== 'new') { event = await mockDb.getEventById(id) if (!event) { notFound() } } // Get listings so the admin can associate the event with a venue const listings = await mockDb.getListings() return (

{id === 'new' ? 'yeni etkinlik ekle' : 'etkinliği düzenle'}

Etkinlik adını, tarih aralığını ve sponsorluk durumunu belirtin. Kapak görseli eklemeyi unutmayın.

) }