37 lines
663 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-02-04 10:50:18 -05:00
static propTypes = {
2020-02-19 18:57:07 -05:00
actions: PropTypes.array,
2020-02-22 18:26:23 -05:00
tabs: PropTypes.array,
2020-02-04 10:50:18 -05:00
layout: PropTypes.object,
2020-02-19 18:57:07 -05:00
showBackBtn: PropTypes.bool,
2020-04-11 18:29:19 -04:00
title: PropTypes.string.isRequired,
children: PropTypes.node.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 {
children,
title,
showBackBtn,
layout,
actions,
tabs,
} = 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
title={title}
showBackBtn={showBackBtn}
actions={actions}
tabs={tabs}
layout={layout}
>
{children}
</Layout>
2020-02-04 10:50:18 -05:00
)
}
}