2020-04-11 18:29:19 -04:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-03-05 10:44:17 -05:00
|
|
|
import LinkFooter from '../components/link_footer'
|
|
|
|
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
|
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
|
|
|
|
|
|
|
export default class ModalPage extends PureComponent {
|
2020-07-15 23:05:08 -05:00
|
|
|
|
2020-03-05 10:44:17 -05:00
|
|
|
static propTypes = {
|
|
|
|
title: PropTypes.string,
|
2020-07-15 23:05:08 -05:00
|
|
|
page: PropTypes.string,
|
2020-03-05 10:44:17 -05:00
|
|
|
children: PropTypes.node,
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2020-07-15 23:05:08 -05:00
|
|
|
const {
|
|
|
|
children,
|
|
|
|
title,
|
|
|
|
page,
|
|
|
|
} = this.props
|
2020-03-05 10:44:17 -05:00
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
|
|
|
title={title}
|
2020-07-15 23:05:08 -05:00
|
|
|
page={page}
|
|
|
|
layout={[
|
|
|
|
<WhoToFollowPanel key='modal-page-wtf-panel' />,
|
|
|
|
<LinkFooter key='search-page-link-footer' />,
|
|
|
|
]}
|
2020-03-05 10:44:17 -05:00
|
|
|
showBackBtn
|
|
|
|
>
|
2020-04-16 02:00:43 -04:00
|
|
|
<PageTitle path={title} />
|
2020-03-05 10:44:17 -05:00
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
2020-07-15 23:05:08 -05:00
|
|
|
|
2020-03-05 10:44:17 -05:00
|
|
|
}
|