import { MDXContent } from '@content-collections/mdx/react'; import { allBlogPosts } from 'content-collections'; import Image from 'next/image'; interface PostPageProps { params: Promise<{ post: string }>; } const PostPage = async (props: PostPageProps) => { const params = await props.params; const post = allBlogPosts.find((post) => post._meta.path === params.post); if (!post) { return (

Post not found

); } return (
post cover image

{post.title}

{' '}
); }; export default PostPage;