FunctionProject/website/components/FunctionPage/FunctionArticle.jsx

16 lines
372 B
React
Raw Normal View History

2020-08-03 12:04:07 +02:00
import htmlParser from 'html-react-parser'
const FunctionArticle = ({ article }) => {
2020-08-03 12:04:07 +02:00
return (
<div style={{ marginBottom: '50px' }} className='container-fluid'>
2020-08-03 14:14:45 +02:00
{article != null ? (
htmlParser(article)
) : (
<p className='text-center'>L'article n'est pas encore disponible.</p>
)}
2020-08-03 12:04:07 +02:00
</div>
)
}
2020-08-03 12:04:07 +02:00
export default FunctionArticle