gab-social/app/javascript/gabsocial/pages/basic_page.js
2020-05-07 01:55:24 -04:00

37 lines
903 B
JavaScript

import { Fragment } from 'react'
import PageTitle from '../features/ui/util/page_title'
import DefaultLayout from '../layouts/default_layout'
import LinkFooter from '../components/link_footer'
import TrendsPanel from '../components/panel/trends_panel'
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
export default class BasicPage extends PureComponent {
static propTypes = {
title: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
}
render() {
const { children, title } = this.props
return (
<DefaultLayout
noComposeButton
showBackBtn
title={title}
layout={(
<Fragment>
<TrendsPanel />
<WhoToFollowPanel />
<LinkFooter />
</Fragment>
)}
>
<PageTitle path={title} />
{children}
</DefaultLayout>
)
}
}