2016-10-23 23:48:06 +13:00
|
|
|
|
|
|
|
|
import React, { PropTypes } from 'react'
|
|
|
|
|
import Icon from './Icon'
|
2016-11-24 08:11:41 +13:00
|
|
|
import SidebarToggleButton from './SidebarToggleButton'
|
2016-10-23 23:48:06 +13:00
|
|
|
|
|
|
|
|
export default class Header extends React.Component{
|
|
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
return (
|
|
|
|
|
<header>
|
|
|
|
|
<Icon name={ this.props.icon } />
|
2016-11-24 08:11:41 +13:00
|
|
|
<SidebarToggleButton />
|
2016-10-23 23:48:06 +13:00
|
|
|
<h1>{ this.props.title }</h1>
|
2016-11-14 17:32:36 +13:00
|
|
|
{ this.props.actions ? <div className="actions">{ this.props.actions }</div> : null }
|
2016-10-23 23:48:06 +13:00
|
|
|
</header>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|