import { getPosts } from '@/lib/posts' import { PostSearch } from '@/components/posts/PostSearch' export const metadata = { title: 'Posts' } export default async function PostsPage() { const posts = await getPosts() return (

Posts

{posts.length > 0 ? ( ) : (

No posts yet

The archive is empty.

Publish an MDX post to populate this list and enable archive search.

)}
) }