diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2021-07-19 21:08:50 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2021-07-19 21:08:50 -0500 |
commit | f1f25f4764dd8d297a59765b0df85f55da2b39ee (patch) | |
tree | 9c10f3fcde264a1b13dccc64b9037f46d9bbc121 /templates/MarkdownPage | |
download | homepage-f1f25f4764dd8d297a59765b0df85f55da2b39ee.tar.xz homepage-f1f25f4764dd8d297a59765b0df85f55da2b39ee.zip |
Init
Diffstat (limited to 'templates/MarkdownPage')
-rw-r--r-- | templates/MarkdownPage/index.tsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/MarkdownPage/index.tsx b/templates/MarkdownPage/index.tsx new file mode 100644 index 0000000..22b531e --- /dev/null +++ b/templates/MarkdownPage/index.tsx @@ -0,0 +1,20 @@ +import React, { FC } from "react"; +import Markdown from "../../components/Markdown"; +import DefaultPage from "../Default"; + +export type Props = { + path?: string; + md: string; +}; + +const MarkdownPage : FC<Props> = ({path, md, ...props}) => ( + <DefaultPage + path={path} + > + <Markdown + md={md} + /> + </DefaultPage> +); + +export default MarkdownPage;
\ No newline at end of file |