2020-03-05 15:44:17 +00:00
|
|
|
import { Fragment } from 'react'
|
2020-04-11 23:29:19 +01:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-03-05 15:44:17 +00: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 {
|
|
|
|
static propTypes = {
|
|
|
|
title: PropTypes.string,
|
|
|
|
children: PropTypes.node,
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const { children, title } = this.props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
|
|
|
title={title}
|
|
|
|
layout={(
|
|
|
|
<Fragment>
|
|
|
|
<WhoToFollowPanel />
|
|
|
|
<LinkFooter />
|
|
|
|
</Fragment>
|
|
|
|
)}
|
|
|
|
showBackBtn
|
|
|
|
>
|
2020-04-16 07:00:43 +01:00
|
|
|
<PageTitle path={title} />
|
2020-03-05 15:44:17 +00:00
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|