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 { locale, id } = await params let collection = null if (id !== 'new') { collection = await mockDb.getCollectionById(id) if (!collection) { notFound() } } const allListings = await mockDb.getListings() const listingOptions = allListings.map(l => ({ value: l.id, label: l.nameTr })) return (
{id === 'new' ? 'Yeni bir mekan kürasyonu oluşturun.' : 'Mevcut kürasyon bilgilerini güncelleyin.'}