45 lines
900 B
JavaScript
Raw Normal View History

2020-04-11 18:29:19 -04:00
import PageTitle from '../features/ui/util/page_title'
import Block from '../components/block'
2020-03-05 10:44:17 -05:00
import DefaultLayout from '../layouts/default_layout'
import {
LinkFooter,
WhoToFollowPanel,
} from '../features/ui/util/async_components'
2020-03-05 10:44:17 -05:00
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}
showBackBtn
layout={[
WhoToFollowPanel,
LinkFooter,
]}
2020-03-05 10:44:17 -05:00
>
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
}