import React from 'react'
import JengaNavInfo from './JengaNavInfo'
import JengaTypeBlockOperator from './JengaTypeBlockOperator'
import JengaNavMemo from './JengaNavMemo'

export default class JengaNav extends React.Component {
  constructor(props) {
    super(props)

    this.showOperator = this.showOperator.bind(this)
  }

  showOperator() {
    if (this.props.curEventNodeList) {
      return false
    }
    return true
  }

  render() {
    return (
      <div className="jenga-nav f--hlc">
        <JengaNavInfo curEventNodeList={this.props.curEventNodeList} />
        {this.showOperator() ? <JengaTypeBlockOperator /> : null}
        <JengaNavMemo />
      </div>
    )
  }
}
