import { mockDb } from '@/lib/mockDb' import CollectionForm from './CollectionForm' import { notFound } from 'next/navigation' interface Props { params: Promise<{ locale: string; id: string }> } export default async function AdminCollectionEditPage({ params }: Props) { const { id } = await params let collection = null if (id !== 'new') { collection = await mockDb.getCollectionById(id) if (!collection) { notFound() } } // Fetch listings for option list const listings = await mockDb.getListings() const listingOptions = listings.map(l => ({ value: l.id, label: `${l.nameTr} (${l.neighborhood?.nameTr})` })) return (

{id === 'new' ? 'yeni seçki (koleksiyon)' : 'seçkiyi düzenle'}

{id === 'new' ? 'Yeni bir tematik mekan derlemesi oluşturun.' : 'Mevcut kürasyon seki bilgilerini güncelleyin.'}

) }