de54ad895c
A statically generated blog example using Next.js and [Builder.io](https://builder.io), demo on [https://cms-builder-io.vercel.app/](https://cms-builder-blog.vercel.app/)
13 lines
359 B
JavaScript
13 lines
359 B
JavaScript
import { BUILDER_CONFIG } from '@/lib/constants'
|
|
import { BuilderComponent } from '@builder.io/react'
|
|
export default function PostBody({ content }) {
|
|
return (
|
|
<div className="max-w-2xl mx-auto">
|
|
<BuilderComponent
|
|
options={{ includeRefs: true }}
|
|
model={BUILDER_CONFIG.postsModel}
|
|
content={content}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|