Gwk-Cultural-Park/components/GalleryBody.tsx
2024-09-07 08:40:25 +07:00

21 lines
526 B
TypeScript

/**
* This component uses Portable Text to render a post body.
*
* You can learn more about Portable Text on:
* https://www.sanity.io/docs/block-content
* https://github.com/portabletext/react-portabletext
* https://portabletext.org/
*
*/
import { PortableText } from '@portabletext/react'
import styles from './PostBody.module.css'
export default function GalleryBody({ content }) {
return (
<div className={`mx-auto max-w-2xl ${styles.portableText}`}>
<PortableText value={content} />
</div>
)
}