import Card, { CardCta, CardDescription, CardEyebrow, CardTitle, } from '@/components/server/Card' import SimpleLayout from '@/components/server/SimpleLayout' import formatDate from '@/lib/formatDate' import { getFirstBlogPosts } from '@/lib/notion/content/blogPosts' import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText' export const revalidate = 600 function BlogPost({ slug, title, description, publishDate, }: { slug: string title: string description: string publishDate: string }) { return ( {title} {formatDate(publishDate)} {description} Lê o artigo {formatDate(publishDate)} ) } export default async function Blog() { const { results: blogPosts } = await getFirstBlogPosts() return ( {blogPosts.map((blogPost) => ( ))} ) }