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

Posts

{posts.map((post) => ( ))} {posts.length === 0 && (

No posts yet.

)}
) }