2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-04-11 23:29:19 +01:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-08-06 06:12:35 +01:00
|
|
|
import Block from '../components/block'
|
2020-03-05 15:44:17 +00:00
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
2020-08-12 23:52:46 +01:00
|
|
|
import {
|
|
|
|
LinkFooter,
|
2020-09-01 17:54:01 +01:00
|
|
|
UserSuggestionsPanel,
|
2020-08-12 23:52:46 +01:00
|
|
|
} from '../features/ui/util/async_components'
|
2020-03-05 15:44:17 +00:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class ModalPage extends React.PureComponent {
|
2020-03-05 15:44:17 +00:00
|
|
|
|
|
|
|
render() {
|
2020-07-16 05:05:08 +01:00
|
|
|
const {
|
|
|
|
children,
|
|
|
|
title,
|
|
|
|
page,
|
|
|
|
} = this.props
|
2020-03-05 15:44:17 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
2020-12-20 17:27:24 +00:00
|
|
|
noComposeButton
|
2020-03-05 15:44:17 +00:00
|
|
|
title={title}
|
2020-07-16 05:05:08 +01:00
|
|
|
page={page}
|
2020-08-12 23:52:46 +01:00
|
|
|
showBackBtn
|
2020-07-16 05:05:08 +01:00
|
|
|
layout={[
|
2020-09-01 17:54:01 +01:00
|
|
|
UserSuggestionsPanel,
|
2020-08-12 23:52:46 +01:00
|
|
|
LinkFooter,
|
2020-07-16 05:05:08 +01:00
|
|
|
]}
|
2020-03-05 15:44:17 +00:00
|
|
|
>
|
2020-04-16 07:00:43 +01:00
|
|
|
<PageTitle path={title} />
|
2020-08-06 06:12:35 +01:00
|
|
|
|
|
|
|
<Block>
|
2020-08-18 21:49:11 +01:00
|
|
|
<div className={[_s.d, _s.py15, _s.px15].join(' ')}>
|
2020-08-06 06:12:35 +01:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</Block>
|
2020-03-05 15:44:17 +00:00
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
2020-07-16 05:05:08 +01:00
|
|
|
|
2020-08-14 18:45:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ModalPage.propTypes = {
|
|
|
|
title: PropTypes.string,
|
|
|
|
page: PropTypes.string,
|
|
|
|
children: PropTypes.node,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalPage
|