shellphone.app/app/blog/components/post-body.tsx

17 lines
336 B
TypeScript
Raw Normal View History

2021-08-27 16:08:38 +00:00
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>
);
}