import { h, Component } from 'preact'
import { Link } from 'react-router-dom'

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

