File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
- import { queryDashboardImages } from '@/app/actions'
2
- import { DataTable } from '@/components/DataTable'
3
- import { columns } from '@/components/DataTable/columns'
4
-
5
1
export const runtime = 'edge' ;
2
+ const mdxs = JSON . parse ( process . env . mdxs ?? '' ) ;
3
+ import { md } from '@/lib/hl' ;
6
4
7
- export default async function Home ( ) {
8
- const dashboardImages = await queryDashboardImages ( )
5
+ export default async function Home ( {
6
+ params : { lang } ,
7
+ } : {
8
+ params : { lang : string } ;
9
+ } ) {
10
+ console . log ( mdxs ) ;
9
11
10
- return < DataTable data = { dashboardImages ?? [ ] } columns = { columns } />
12
+ return (
13
+ < div
14
+ dangerouslySetInnerHTML = { { __html : md . render ( mdxs [ lang ] ?? '' ) } }
15
+ className = "prose dark:prose-invert py-2 max-w-[980px] mx-auto"
16
+ />
17
+ ) ;
11
18
}
You can’t perform that action at this time.
0 commit comments