2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-08-06 06:12:03 +01:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-11-07 05:34:23 +00:00
|
|
|
import NewsLayout from '../layouts/news_layout'
|
2020-08-06 06:12:03 +01:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class NewsPage extends React.PureComponent {
|
2020-08-06 06:12:03 +01:00
|
|
|
|
|
|
|
render() {
|
2020-11-09 07:33:15 +00:00
|
|
|
const { children, title } = this.props
|
2020-08-06 06:12:03 +01:00
|
|
|
|
|
|
|
return (
|
2020-11-09 07:33:15 +00:00
|
|
|
<NewsLayout title={title}>
|
|
|
|
<PageTitle path={title} />
|
2020-08-06 06:12:03 +01:00
|
|
|
{children}
|
2020-11-07 05:34:23 +00:00
|
|
|
</NewsLayout>
|
2020-08-06 06:12:03 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-08-14 18:45:59 +01:00
|
|
|
|
|
|
|
NewsPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default NewsPage
|