17 lines
336 B
TypeScript
17 lines
336 B
TypeScript
|
import styles from "../styles/post-body.module.css";
|
||
|
|
||
|
type Props = {
|
||
|
content: string;
|
||
|
};
|
||
|
|
||
|
export default function PostBody({ content }: Props) {
|
||
|
return (
|
||
|
<div className="max-w-2xl mx-auto">
|
||
|
<div
|
||
|
className={`prose prose-lg prose-blue ${styles.markdown}`}
|
||
|
dangerouslySetInnerHTML={{ __html: content }}
|
||
|
/>
|
||
|
</div>
|
||
|
);
|
||
|
}
|