InvestWeb/components/wiki/PageBody.tsx

26 lines
633 B
TypeScript
Raw Normal View History

2023-02-06 06:03:33 -05:00
import mdStyles from "./markdown.module.css";
import RenderMarkdown from "./RenderMarkdown";
interface PageBodyProps {
children: string;
currentLanguage: string;
path: string;
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">
<RenderMarkdown
path={props.path}
currentLanguage={props.currentLanguage}
>
{props.children}
</RenderMarkdown>
2023-02-06 06:03:33 -05:00
</div>
</div>
</div>
);
}