blob: 315402217e43f67ba4d7ac76497640bba80e65a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import React from 'react'
class StageLayout extends React.Component {
static get defaultProps() {return{
title: 'untitled',
subtitle: null,
buttons: null
}}
constructor(props) {
super(props)
}
render() {
let subtitle = null
if (this.props.subtitle) {
subtitle = <span>{this.props.subtitle}</span>
}
return(
<div className="stage">
<div className="header">
{this.props.title}
{subtitle}
</div>
<div className="body">
{this.props.children}
</div>
<div className="footer">
{this.props.buttons}
</div>
</div>
)
}
}
export default StageLayout
|