import { getWikiPageBySlug } from '@/lib/wiki'; import { notFound } from 'next/navigation'; import { MDXRemote } from 'next-mdx-remote/rsc'; import { Callout, Grid, Card, Steps, Step } from '@/components/mdx-components'; const mdxComponents = { Callout, Grid, Card, Steps, Step, h2: (props: any) =>
, }; type PageProps = { params: Promise<{ slug: string; }>; }; export default async function Page({ params }: PageProps) { const { slug } = await params; const article = await getWikiPageBySlug(slug); if (!article) { notFound(); } return (