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