first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
17
apps/web/modules/marketing/blog/components/PostContent.tsx
Normal file
17
apps/web/modules/marketing/blog/components/PostContent.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use client";
|
||||
|
||||
import { MDXContent } from "@content-collections/mdx/react";
|
||||
import { mdxComponents } from "../utils/mdx-components";
|
||||
|
||||
export function PostContent({ content }: { content: string }) {
|
||||
return (
|
||||
<div className="prose dark:prose-invert mx-auto mt-6 max-w-2xl">
|
||||
<MDXContent
|
||||
code={content}
|
||||
components={{
|
||||
a: mdxComponents.a,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue