import React, { Component } from 'react'

export default class Modal extends Component {
  render() {
    let className = this.props.visible ? 'modal visible' : 'modal'
    return (
      <div className={className}>
        <div className='inner'>
          {this.props.children}
        </div>
      </div>
    )
  }
}
