'use client-only'; import { Post } from '@/lib/getPosts'; import { FC } from 'react'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; interface PostProps { posts: Post[]; } const Posts: FC = ({ posts }) => { return ( <> {posts.map((p) => (

{p.author.name}

{p.title}

{p.message && ( )}
))} ); }; export default Posts;