This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/components/FunctionPage/FunctionArticle.jsx

18 lines
402 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'>
{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