16 | {version.status !== 'active' && version.status !== 'draft' && (
17 |
29 | )}
30 | {index !== 0 && version.status !== 'active' && (
31 |
42 | )}
43 |
44 | );
45 | }
46 |
--------------------------------------------------------------------------------
/apps/landing-page/app/docs/[[...slug]]/page.tsx:
--------------------------------------------------------------------------------
1 | import { source } from "@/lib/source";
2 | import {
3 | DocsPage,
4 | DocsBody,
5 | DocsTitle,
6 | DocsDescription,
7 | } from "fumadocs-ui/page";
8 | import { notFound } from "next/navigation";
9 | import { metadataImage } from "@/lib/metadata";
10 | import { getMDXComponents } from "@/components/mdx-components";
11 |
12 | export default async function Page(props: {
13 | params: Promise<{ slug?: string[] }>;
14 | }) {
15 | const params = await props.params;
16 | const page = source.getPage(params.slug);
17 | if (!page) notFound();
18 |
19 | const MDX = page.data.body;
20 |
21 | return (
22 |