import { mockDb } from '@/lib/mockDb' import BlogPostForm from './BlogPostForm' import { notFound } from 'next/navigation' interface Props { params: Promise<{ locale: string; id: string }> } export default async function AdminBlogPostEditPage({ params }: Props) { const { locale, id } = await params let post = null if (id !== 'new') { post = await mockDb.getBlogPostById(id) if (!post) { notFound() } } return (

{id === 'new' ? 'yeni yazı ekle' : 'yazıyı düzenle'}

{id === 'new' ? 'Yeni bir blog yazısı oluşturun.' : 'Mevcut blog yazısı bilgilerini güncelleyin.'}

) }