import { notFound } from 'next/navigation' import { getBlogPostBySlug } from '@/lib/notion/content/blogPosts' import getProxiedAssetUrl from '@/lib/notion/utils/getProxiedAssetUrl' import richTextAsPlainText from '@/lib/notion/utils/richTextToPlainText' export default async function Head({ params: { slug }, }: { params: { slug: string } }) { const blogPost = await getBlogPostBySlug({ slug }) if (!blogPost) { notFound() } const title = `${richTextAsPlainText( blogPost.properties.Name.title, )} - Filipe Medeiros` const description = richTextAsPlainText( blogPost.properties.MetaDescription.rich_text, ) return ( <>