InvestWeb/components/wiki/PageBody.tsx

21 lines
559 B
TypeScript
Raw Normal View History

2023-02-09 04:09:15 -05:00
import WikiPage from "../../interfaces/WikiPage";
2023-02-06 06:03:33 -05:00
import mdStyles from "./markdown.module.css";
import RenderMarkdown from "./RenderMarkdown";
interface PageBodyProps {
children: string;
2023-02-09 04:09:15 -05:00
page: WikiPage;
2023-02-06 06:03:33 -05:00
}
export default function PageBody(props: PageBodyProps) {
2023-02-06 06:03:33 -05:00
return (
<div className="prose prose-sm sm:prose lg:prose-lg xl:prose-xl">
<div className={mdStyles["markdown-body"]}>
<div className="text-left">
2023-02-09 04:09:15 -05:00
<RenderMarkdown page={props.page}>{props.children}</RenderMarkdown>
2023-02-06 06:03:33 -05:00
</div>
</div>
</div>
);
}