44 lines
863 B
JavaScript
Raw Normal View History

2020-04-11 18:29:19 -04:00
import Layout from './layout'
2020-02-04 10:50:18 -05:00
2020-02-17 12:50:29 -05:00
export default class DefaultLayout extends PureComponent {
2020-05-03 01:22:49 -04:00
2020-02-04 10:50:18 -05:00
static propTypes = {
2020-02-19 18:57:07 -05:00
actions: PropTypes.array,
2020-05-03 01:22:49 -04:00
children: PropTypes.node.isRequired,
2020-02-04 10:50:18 -05:00
layout: PropTypes.object,
2020-02-19 18:57:07 -05:00
showBackBtn: PropTypes.bool,
2020-05-07 01:55:24 -04:00
noComposeButton: PropTypes.bool,
noRightSidebar: PropTypes.bool,
2020-05-03 01:22:49 -04:00
tabs: PropTypes.array,
2020-04-11 18:29:19 -04:00
title: PropTypes.string.isRequired,
2020-02-05 17:45:48 -05:00
}
2020-02-04 10:50:18 -05:00
render() {
2020-04-11 18:29:19 -04:00
const {
2020-05-03 01:22:49 -04:00
actions,
2020-04-11 18:29:19 -04:00
children,
layout,
2020-05-03 01:22:49 -04:00
showBackBtn,
2020-04-11 18:29:19 -04:00
tabs,
2020-05-03 01:22:49 -04:00
title,
2020-05-07 01:55:24 -04:00
noComposeButton,
noRightSidebar,
2020-05-03 01:22:49 -04:00
} = this.props
2020-03-24 23:08:43 -04:00
2020-02-04 10:50:18 -05:00
return (
2020-04-11 18:29:19 -04:00
<Layout
actions={actions}
layout={layout}
2020-05-03 01:22:49 -04:00
showBackBtn={showBackBtn}
tabs={tabs}
title={title}
2020-05-07 01:55:24 -04:00
noComposeButton={noComposeButton}
noRightSidebar={noRightSidebar}
2020-04-11 18:29:19 -04:00
>
{children}
</Layout>
2020-02-04 10:50:18 -05:00
)
}
}