40 lines
998 B
JavaScript
Raw Normal View History

2020-04-11 18:29:19 -04:00
import PageTitle from '../features/ui/util/page_title'
2020-05-03 01:22:49 -04:00
import DefaultLayout from '../layouts/default_layout'
2020-03-03 22:45:16 -05:00
import LinkFooter from '../components/link_footer'
import TrendsPanel from '../components/panel/trends_panel'
2020-05-03 01:22:49 -04:00
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
2020-03-03 22:45:16 -05:00
export default class BasicPage extends PureComponent {
2020-05-03 01:22:49 -04:00
2020-03-03 22:45:16 -05:00
static propTypes = {
2020-04-11 18:29:19 -04:00
children: PropTypes.node.isRequired,
page: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
2020-03-03 22:45:16 -05:00
}
render() {
const {
children,
page,
title,
} = this.props
2020-03-03 22:45:16 -05:00
return (
<DefaultLayout
2020-05-07 01:55:24 -04:00
noComposeButton
2020-04-11 18:29:19 -04:00
showBackBtn
2020-03-03 22:45:16 -05:00
title={title}
page={page}
layout={[
<TrendsPanel key='basic-page-trends-panel' />,
<WhoToFollowPanel key='basic-page-wtf-panel' />,
<LinkFooter key='basic-page-link-footer' />,
]}
2020-03-03 22:45:16 -05:00
>
2020-04-11 18:29:19 -04:00
<PageTitle path={title} />
2020-03-03 22:45:16 -05:00
{children}
</DefaultLayout>
)
}
2020-05-03 01:22:49 -04:00
2020-03-03 22:45:16 -05:00
}