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 Layout from './layout'
|
2020-02-04 15:50:18 +00:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class DefaultLayout extends React.PureComponent {
|
2020-02-04 15:50:18 +00:00
|
|
|
|
|
|
|
render() {
|
2020-04-11 23:29:19 +01:00
|
|
|
const {
|
2020-05-03 06:22:49 +01:00
|
|
|
actions,
|
2020-04-11 23:29:19 +01:00
|
|
|
children,
|
|
|
|
layout,
|
2020-07-16 05:05:08 +01:00
|
|
|
noComposeButton,
|
|
|
|
noRightSidebar,
|
|
|
|
page,
|
2020-05-03 06:22:49 +01:00
|
|
|
showBackBtn,
|
2020-04-11 23:29:19 +01:00
|
|
|
tabs,
|
2020-05-03 06:22:49 +01:00
|
|
|
title,
|
|
|
|
} = this.props
|
2020-03-25 03:08:43 +00:00
|
|
|
|
2020-02-04 15:50:18 +00:00
|
|
|
return (
|
2020-04-11 23:29:19 +01:00
|
|
|
<Layout
|
|
|
|
actions={actions}
|
|
|
|
layout={layout}
|
2020-07-16 05:05:08 +01:00
|
|
|
noComposeButton={noComposeButton}
|
|
|
|
noRightSidebar={noRightSidebar}
|
|
|
|
page={page}
|
2020-05-03 06:22:49 +01:00
|
|
|
showBackBtn={showBackBtn}
|
|
|
|
tabs={tabs}
|
|
|
|
title={title}
|
2020-04-11 23:29:19 +01:00
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</Layout>
|
2020-02-04 15:50:18 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-08-14 18:45:59 +01:00
|
|
|
|
|
|
|
DefaultLayout.propTypes = {
|
|
|
|
actions: PropTypes.array,
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
layout: PropTypes.object,
|
|
|
|
noComposeButton: PropTypes.bool,
|
|
|
|
noRightSidebar: PropTypes.bool,
|
|
|
|
page: PropTypes.string,
|
|
|
|
showBackBtn: PropTypes.bool,
|
|
|
|
tabs: PropTypes.array,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default DefaultLayout
|