gab-social/app/javascript/gabsocial/pages/news_page.js

26 lines
506 B
JavaScript
Raw Normal View History

import React from 'react'
import PropTypes from 'prop-types'
import PageTitle from '../features/ui/util/page_title'
import NewsLayout from '../layouts/news_layout'
class NewsPage extends React.PureComponent {
render() {
const { children } = this.props
return (
<NewsLayout>
<PageTitle path='News' />
{children}
</NewsLayout>
)
}
}
NewsPage.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string.isRequired,
}
export default NewsPage