@@ -7,13 +7,13 @@ import {
77} from 'fumadocs-ui/page' ;
88
99import { notFound } from 'next/navigation' ;
10- import { ComponentProps , FC } from 'react' ;
10+ import type { ComponentProps , FC } from 'react' ;
1111import defaultMdxComponents from 'fumadocs-ui/mdx' ;
1212
1313import { Callout } from '@/components/callout' ;
1414import { Tab , Tabs } from 'fumadocs-ui/components/tabs' ;
1515import { createRelativeLink } from 'fumadocs-ui/mdx' ;
16- import FooterSection from '@/app/(home)/FooterSection' ;
16+ // import FooterSection from '@/app/(home)/FooterSection';
1717import { EditButton } from '@/components/edit-button' ;
1818import { CopyInstallationButton } from '@/components/copy-installation-button' ;
1919
@@ -43,48 +43,40 @@ export default async function Page(props: {
4343 const isInstallationPage = params . slug ?. join ( '/' ) === 'getting-started/installation' ;
4444
4545 return (
46- < >
47- < div className = "absolute inset-0 -z-10 w-full h-full pointer-events-none overflow-x-clip" >
48- < div className = "absolute top-0 xl:right-1/2 right-0 translate-x-1/2 -z-10 -translate-y-1/2 w-[64rem] h-[64rem] rounded-full bg-amber-500/10 max-md:hidden [--mask:radial-gradient(circle_at_center,red,transparent_69%)] [mask-image:var(--mask)] [webkit-mask-image:var(--mask)] pointer-events-none" />
49- < div className = "fixed top-0 xl:right-1/2 right-0 translate-x-1/2 -z-10 -translate-y-1/2 w-[64rem] h-[64rem] rounded-full bg-amber-500/5 max-md:hidden [--mask:radial-gradient(circle_at_center,red,transparent_69%)] [mask-image:var(--mask)] [webkit-mask-image:var(--mask)] pointer-events-none" />
50- < div className = "absolute top-0 xl:right-1/2 right-0 translate-x-1/2 -z-10 h-[64rem] w-[64rem] bg-grid-lines-xl dark:opacity-80 -translate-y-1/2 max-md:hidden [--mask:radial-gradient(circle_at_center_top,red,transparent)] [mask-image:var(--mask)] [webkit-mask-image:var(--mask)] -skew-20 pointer-events-none" />
51- </ div >
52-
53- < DocsPage toc = { page . data . toc } full = { page . data . full }
54- tableOfContent = { {
55- style : 'clerk' ,
56- single : false ,
57- } }
58- >
59- { /* TODO: install DocsPage FumaDocsv15 and reorder contents */ }
60- { /* lastUpdate={page.data.lastModified && new Date(page.data.lastModified)} */ }
61- { page . data . lastModified && (
62- < p className = "text-sm text-fd-muted-foreground -mb-4" >
63- Last updated on { Intl . DateTimeFormat ( "en-US" , { dateStyle : "long" } ) . format ( new Date ( page . data . lastModified ) ) }
64- </ p >
65- ) }
66- < div className = "flex items-center justify-between mb-4" >
67- < div className = "flex-1" >
68- < DocsTitle > { page . data . title } </ DocsTitle >
69- < DocsDescription > { page . data . description } </ DocsDescription >
70- </ div >
71- < div className = "flex items-center gap-2" >
72- < EditButton filePath = { filePath } version = "v5" />
73- { isInstallationPage && < CopyInstallationButton /> }
74- </ div >
46+ < DocsPage toc = { page . data . toc } full = { page . data . full }
47+ tableOfContent = { {
48+ style : 'clerk' ,
49+ single : false ,
50+ } }
51+ >
52+ { /* // TODO: install DocsPage FumaDocsv15 and reorder contents */ }
53+ { /* lastUpdate={page.data.lastModified && new Date(page.data.lastModified)} */ }
54+ { page . data . lastModified && (
55+ < p className = "text-sm text-fd-muted-foreground -mb-4" >
56+ Last updated on { Intl . DateTimeFormat ( "en-US" , { dateStyle : "long" } ) . format ( new Date ( page . data . lastModified ) ) }
57+ </ p >
58+ ) }
59+ < div className = "flex items-center justify-between mb-4" >
60+ < div className = "flex-1" >
61+ < DocsTitle > { page . data . title } </ DocsTitle >
62+ < DocsDescription > { page . data . description } </ DocsDescription >
63+ </ div >
64+ < div className = "flex items-center gap-2" >
65+ < EditButton filePath = { filePath } version = "v5" />
66+ { isInstallationPage && < CopyInstallationButton /> }
7567 </ div >
76- < DocsBody >
77- < MDX components = { {
78- ... defaultMdxComponents as any ,
79- a : createRelativeLink ( source5 , page ) ,
80- blockquote : Callout as unknown as FC < ComponentProps < 'blockquote' > > ,
81- Tab , Tabs ,
82- Callout ,
83- } } />
84- </ DocsBody >
85- { /* <FooterSection /> */ }
86- </ DocsPage >
87- </ >
68+ </ div >
69+ < DocsBody >
70+ < MDX components = { {
71+ ... defaultMdxComponents as any ,
72+ a : createRelativeLink ( source5 , page ) ,
73+ blockquote : Callout as unknown as FC < ComponentProps < 'blockquote' > > ,
74+ Tab , Tabs ,
75+ Callout ,
76+ } } / >
77+ </ DocsBody >
78+ { /* <FooterSection /> */ }
79+ </ DocsPage >
8880 ) ;
8981}
9082
0 commit comments