import { getPosts } from '@/lib/getPosts'; import { cookies } from 'next/headers'; import { use } from 'react'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; export default function Posts() { const c = cookies(); const posts = use(getPosts()); return ( <> {posts.map((p) => (
@{p.author.name}
{p.title}