| 1 | import { |
| 2 | DocsBody, |
| 3 | DocsDescription, |
| 4 | DocsPage, |
| 5 | DocsTitle, |
| 6 | } from "fumadocs-ui/layouts/docs/page"; |
| 7 | import { createRelativeLink } |
| 8 | import type { Metadata |
| 9 | import { notFound } |
| 10 | |
| 11 | import { getMDXComponents } |
| 12 | import { source } |
| 13 | |
| 14 | export default async function |
| 15 | const { slug |
| 16 | const page = |
| 17 | if (!page) |
| 18 | |
| 19 | const MDX = |
| 20 | |
| 21 | return ( |
| 22 | <DocsPage toc={ |
| 23 | <DocsTitle>{page. |
| 24 | <DocsDescription>{page. |
| 25 | <DocsBody> |
| 26 | <MDX |
| 27 | components={getMDXComponents({ |
| 28 | /> |
| 29 | </DocsBody> |
| 30 | </DocsPage> |
| 31 | ); |
| 32 | } |
| 33 | |
| 34 | export function generateStaticParams() |
| 35 | return source.generateParams |
| 36 | } |
| 37 | |
| 38 | export async function generateMetadata |
| 39 | props: PageProps |
| 40 | ): Promise<Metadata |
| 41 | const { slug |
| 42 | const page = |
| 43 | if (!page) |
| 44 | |
| 45 | return { title: |
| 46 | } |