import Link from 'next/link'; import { siteUrl } from '@/lib/constants'; import { IBlogPost } from '@/lib/blog'; export default async function PostsPage() { const res = await fetch(`${siteUrl}/api/blogs`); const posts: IBlogPost[] = [ { id: 1, slug: '2021-10-29-the-story-of-futureporn', title: 'The Story Of Futureporn' } ] return (

All Blog Posts


{posts.map((post: IBlogPost) => (

> {post.title}

))}
); }