import React from 'react'
import cx from 'classnames'
import PropTypes from 'prop-types'

function MTStage (props) {
  const { hasHeader, className, ...otherProps } = props

  return (
    <div
      { ...otherProps }
      className={ cx('mt-stage', hasHeader && 'has-header', className) }
    >
      { props.children }
    </div>
  )
}

MTStage.defaultProps = {
  hasHeader: false,
}

MTStage.propTypes = {
  hasHeader: PropTypes.bool,
  align: PropTypes.bool,
}

export default MTStage
