mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-26 06:37:25 +10:00
19 lines
445 B
JavaScript
19 lines
445 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
export const HTMLContent = ({ content, className }) => (
|
|
<div className={className} dangerouslySetInnerHTML={{ __html: content }} />
|
|
)
|
|
|
|
const Content = ({ content, className }) => (
|
|
<div className={className}>{content}</div>
|
|
)
|
|
|
|
Content.propTypes = {
|
|
content: PropTypes.string,
|
|
className: PropTypes.string,
|
|
}
|
|
|
|
HTMLContent.propTypes = Content.propTypes
|
|
|
|
export default Content
|