43 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-03-05 10:44:17 -05:00
import LinkFooter from '../components/link_footer'
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
import Block from '../components/block'
2020-03-05 10:44:17 -05:00
import DefaultLayout from '../layouts/default_layout'
export default class ModalPage extends PureComponent {
2020-03-05 10:44:17 -05:00
static propTypes = {
title: PropTypes.string,
page: PropTypes.string,
2020-03-05 10:44:17 -05:00
children: PropTypes.node,
}
render() {
const {
children,
title,
page,
} = this.props
2020-03-05 10:44:17 -05:00
return (
<DefaultLayout
title={title}
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} />
<Block>
<div className={[_s.default, _s.py15, _s.px15].join(' ')}>
{children}
</div>
</Block>
2020-03-05 10:44:17 -05:00
</DefaultLayout>
)
}
2020-03-05 10:44:17 -05:00
}