aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modal/modal-content/modal-content.component.js
blob: ecec0ee5b6268bcb3c72840b955a748a1c129232 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'

export default class ModalContent extends PureComponent {
  static propTypes = {
    title: PropTypes.string,
    description: PropTypes.string,
  }

  render () {
    const { title, description } = this.props

    return (
      <div className="modal-content">
        {
          title && (
            <div className="modal-content__title">
              { title }
            </div>
          )
        }
        {
          description && (
            <div className="modal-content__description">
              { description }
            </div>
          )
        }
      </div>
    )
  }
}