Skip to content

Commit f95fbbb

Browse files
committed
feat: readme in index page
1 parent 48b87fe commit f95fbbb

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

app/[lang]/page.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
import { queryDashboardImages } from '@/app/actions'
2-
import { DataTable } from '@/components/DataTable'
3-
import { columns } from '@/components/DataTable/columns'
4-
51
export const runtime = 'edge';
2+
const mdxs = JSON.parse(process.env.mdxs ?? '');
3+
import { md } from '@/lib/hl';
64

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);
911

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+
);
1118
}

0 commit comments

Comments
 (0)