import TabBar from './tab_bar' import Button from './button' import Heading from './heading' export default class ColumnHeader extends PureComponent { static contextTypes = { router: PropTypes.object, } static propTypes = { title: PropTypes.node, showBackBtn: PropTypes.bool, actions: PropTypes.array, tabs: PropTypes.array, } historyBack = () => { if (window.history && window.history.length === 1) { this.context.router.history.push('/home') } else { this.context.router.history.goBack() } } handleBackClick = () => { this.historyBack() } render() { const { title, showBackBtn, tabs, actions, } = this.props return (