InvestWeb/components/wiki/PageBody.tsx

19 lines
474 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;
}
export default function PageBody({ children }: PageBodyProps) {
return (
<div className="prose prose-sm sm:prose lg:prose-lg xl:prose-xl">
<div className={mdStyles["markdown-body"]}>
<div className="text-left">
<RenderMarkdown>{children}</RenderMarkdown>
</div>
</div>
</div>
);
}