2020-08-17 15:07:16 -05:00
|
|
|
import React from 'react'
|
2020-08-17 15:59:29 -05:00
|
|
|
import PropTypes from 'prop-types'
|
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-08-12 17:52:46 -05:00
|
|
|
import {
|
|
|
|
LinkFooter,
|
|
|
|
TrendsPanel,
|
2020-09-01 11:54:01 -05:00
|
|
|
UserSuggestionsPanel,
|
2020-08-12 17:52:46 -05:00
|
|
|
} from '../features/ui/util/async_components'
|
2020-03-03 22:45:16 -05:00
|
|
|
|
2020-08-17 15:07:16 -05:00
|
|
|
class BasicPage extends React.PureComponent {
|
2020-03-03 22:45:16 -05:00
|
|
|
|
|
|
|
render() {
|
2020-07-15 23:05:08 -05:00
|
|
|
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}
|
2020-07-15 23:05:08 -05:00
|
|
|
page={page}
|
|
|
|
layout={[
|
2020-08-12 17:52:46 -05:00
|
|
|
TrendsPanel,
|
2020-09-01 11:54:01 -05:00
|
|
|
UserSuggestionsPanel,
|
2020-08-12 17:52:46 -05:00
|
|
|
LinkFooter,
|
2020-07-15 23:05:08 -05:00
|
|
|
]}
|
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-08-14 12:45:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
BasicPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
page: PropTypes.string.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default BasicPage
|