import type { Metadata } from 'next'; import { notFound } from 'next/navigation'; import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page'; import { source } from '@/lib/source'; import { getMDXComponents } from '@/mdx-components'; import { SITE_NAME, SITE_URL } from '@/lib/site'; type Props = { params: Promise<{ slug?: string[] }>; }; export default async function Page(props: Props) { const params = await props.params; const page = source.getPage(params.slug); if (!page) notFound(); // status 404 yang benar const MDXContent = page.data.body; // Structured data (JSON-LD) untuk Google const jsonLd = { '@context': 'https://schema.org', '@type': 'TechArticle', headline: page.data.title, description: page.data.description, inLanguage: 'id-ID', mainEntityOfPage: `${SITE_URL}${page.url}`, publisher: { '@type': 'Organization', name: 'Tumbuhin' }, }; return (