mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
18 lines
482 B
TypeScript
18 lines
482 B
TypeScript
import Markdown from 'markdown-to-jsx';
|
|
import { use } from 'react';
|
|
import PageWrapper from '../../../components/PageWrapper';
|
|
|
|
export default function Page({ params }: { params: { document: string } }) {
|
|
const markdown = use(
|
|
fetch(
|
|
`https://raw.githubusercontent.com/tresabhi/blitzkit/main/docs/legal/${params.document}.md`,
|
|
).then((response) => response.text()),
|
|
);
|
|
|
|
return (
|
|
<PageWrapper>
|
|
<Markdown>{markdown}</Markdown>
|
|
</PageWrapper>
|
|
);
|
|
}
|